avcodec/utils: free last_pkt_props on avcodec_open2() failure