avcodec/mfenc: check IMFSample_ConvertToContiguousBuffer() for failure
Fixes: CID1591911 Logically dead code Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 86cd7c68bc65df6703391f0cdcdbf7c57d6c4780) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
1d553fc50e
commit
d6e212d312
@ -244,7 +244,7 @@ static int mf_sample_to_avpacket(AVCodecContext *avctx, IMFSample *sample, AVPac
|
||||
if ((ret = av_new_packet(avpkt, len)) < 0)
|
||||
return ret;
|
||||
|
||||
IMFSample_ConvertToContiguousBuffer(sample, &buffer);
|
||||
hr = IMFSample_ConvertToContiguousBuffer(sample, &buffer);
|
||||
if (FAILED(hr))
|
||||
return AVERROR_EXTERNAL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user