mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 09:12:33 +00:00
avcodec/mjpegbdec: Don't create unnecessary AVFrame reference
MJPEG-B is an intra-codec, so it makes no sense to keep the reference. It is unused lateron anyway. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
a54da0831c
commit
2f9fa7e3e9
@ -142,8 +142,8 @@ read_header:
|
||||
return buf_size;
|
||||
}
|
||||
|
||||
if ((ret = av_frame_ref(rframe, s->picture_ptr)) < 0)
|
||||
return ret;
|
||||
av_frame_move_ref(rframe, s->picture_ptr);
|
||||
s->got_picture = 0;
|
||||
*got_frame = 1;
|
||||
|
||||
if (!s->lossless && avctx->debug & FF_DEBUG_QP) {
|
||||
|
Loading…
Reference in New Issue
Block a user