[FFmpeg-cvslog] avcodec/mfenc: check IMFSample_ConvertToContiguousBuffer() for failure
Michael Niedermayer
git at videolan.org
Wed Jul 24 17:49:00 EEST 2024
ffmpeg | branch: release/4.3 | Michael Niedermayer <michael at niedermayer.cc> | Mon May 27 01:52:18 2024 +0200| [d6e212d312e02ed9bcefa365102952f607f7352d] | committer: Michael Niedermayer
avcodec/mfenc: check IMFSample_ConvertToContiguousBuffer() for failure
Fixes: CID1591911 Logically dead code
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 86cd7c68bc65df6703391f0cdcdbf7c57d6c4780)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d6e212d312e02ed9bcefa365102952f607f7352d
---
libavcodec/mfenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mfenc.c b/libavcodec/mfenc.c
index ee3c164e69..cacfcdfc06 100644
--- a/libavcodec/mfenc.c
+++ b/libavcodec/mfenc.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list