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:
Andreas Rheinhardt 2022-04-14 17:57:39 +02:00 committed by Paul B Mahol
parent a54da0831c
commit 2f9fa7e3e9

View File

@ -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) {