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;