mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avcodec/mediacodecdec_common: fix misuse av_free/av_freep
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
b1facd11a3
commit
2b97fdb8cc
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue