mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
all: Use av_frame_replace() where appropriate
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
0487786ffe
commit
cfa47fd331
31 changed files with 34 additions and 67 deletions
|
|
@ -93,8 +93,7 @@ static int zerocodec_decode_frame(AVCodecContext *avctx, AVFrame *pic,
|
|||
dst -= pic->linesize[0];
|
||||
}
|
||||
|
||||
av_frame_unref(zc->previous_frame);
|
||||
if ((ret = av_frame_ref(zc->previous_frame, pic)) < 0)
|
||||
if ((ret = av_frame_replace(zc->previous_frame, pic)) < 0)
|
||||
return ret;
|
||||
|
||||
*got_frame = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue