mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-13 19:01:03 +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;
|
return buf_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret = av_frame_ref(rframe, s->picture_ptr)) < 0)
|
av_frame_move_ref(rframe, s->picture_ptr);
|
||||||
return ret;
|
s->got_picture = 0;
|
||||||
*got_frame = 1;
|
*got_frame = 1;
|
||||||
|
|
||||||
if (!s->lossless && avctx->debug & FF_DEBUG_QP) {
|
if (!s->lossless && avctx->debug & FF_DEBUG_QP) {
|
||||||
|
Loading…
Reference in New Issue
Block a user