[FFmpeg-cvslog] avcodec/mediacodecdec_common: fix misuse av_free/av_freep
Zhao Zhili
git at videolan.org
Mon Nov 21 18:05:15 EET 2022
ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Fri Oct 21 18:18:42 2022 +0800| [2b97fdb8cc9112babc5cb939f62620efab7bba5c] | committer: Zhao Zhili
avcodec/mediacodecdec_common: fix misuse av_free/av_freep
Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2b97fdb8cc9112babc5cb939f62620efab7bba5c
---
libavcodec/mediacodecdec_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mediacodecdec_common.c b/libavcodec/mediacodecdec_common.c
index f430cfed31..4c48b9142e 100644
--- a/libavcodec/mediacodecdec_common.c
+++ b/libavcodec/mediacodecdec_common.c
@@ -334,7 +334,7 @@ static int mediacodec_wrap_hw_buffer(AVCodecContext *avctx,
return 0;
fail:
- av_freep(buffer);
+ av_freep(&buffer);
av_buffer_unref(&frame->buf[0]);
status = ff_AMediaCodec_releaseOutputBuffer(s->codec, index, 0);
if (status < 0) {
More information about the ffmpeg-cvslog
mailing list