You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 22:24:04 +02:00
avcodec/mediacodecdec_common: fix misuse av_free/av_freep
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
@ -334,7 +334,7 @@ static int mediacodec_wrap_hw_buffer(AVCodecContext *avctx,
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
fail:
|
fail:
|
||||||
av_freep(buffer);
|
av_freep(&buffer);
|
||||||
av_buffer_unref(&frame->buf[0]);
|
av_buffer_unref(&frame->buf[0]);
|
||||||
status = ff_AMediaCodec_releaseOutputBuffer(s->codec, index, 0);
|
status = ff_AMediaCodec_releaseOutputBuffer(s->codec, index, 0);
|
||||||
if (status < 0) {
|
if (status < 0) {
|
||||||
|
Reference in New Issue
Block a user