[FFmpeg-devel] [PATCH 06/17] avcodec/mfenc: check IMFSample_ConvertToContiguousBuffer() for failure
Michael Niedermayer
michael at niedermayer.cc
Mon May 27 02:52:18 EEST 2024
Fixes: CID1591911 Logically dead code
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavcodec/mfenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mfenc.c b/libavcodec/mfenc.c
index 2c68adbdc73..b8f8a25f434 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;
--
2.45.1
More information about the ffmpeg-devel
mailing list