aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-05-27 01:52:18 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-07-02 21:57:22 +0200
commit86cd7c68bc65df6703391f0cdcdbf7c57d6c4780 (patch)
treeb5603f4d763e70c6f7b92adb840f35f5ea842f13
parent63ecce9ba87867b21a7cdcd677bb268c0d807db1 (diff)
downloadffmpeg-86cd7c68bc65df6703391f0cdcdbf7c57d6c4780.tar.gz
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>
-rw-r--r--libavcodec/mfenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mfenc.c b/libavcodec/mfenc.c
index 2c68adbdc7..b8f8a25f43 100644
--- a/libavcodec/mfenc.c
+++ b/libavcodec/mfenc.c
@@ -249,7 +249,7 @@ static int mf_sample_to_avpacket(AVCodecContext *avctx, IMFSample *sample, AVPac
if ((ret = ff_get_encode_buffer(avctx, avpkt, len, 0)) < 0)
return ret;
- IMFSample_ConvertToContiguousBuffer(sample, &buffer);
+ hr = IMFSample_ConvertToContiguousBuffer(sample, &buffer);
if (FAILED(hr))
return AVERROR_EXTERNAL;