mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-04 05:57:49 +02:00
Merge commit 'a1ee1648690726b34e98eaf8db04fd7b3303cfc8'
* commit 'a1ee1648690726b34e98eaf8db04fd7b3303cfc8': lavc/decode_video(): always unref the frame if there is no output in decode_video Conflicts: libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
f3acdd44bf
@ -2090,9 +2090,6 @@ fail:
|
|||||||
ret = avpkt->size;
|
ret = avpkt->size;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret < 0 && picture->buf[0])
|
|
||||||
av_frame_unref(picture);
|
|
||||||
|
|
||||||
if (*got_picture_ptr) {
|
if (*got_picture_ptr) {
|
||||||
if (!avctx->refcounted_frames) {
|
if (!avctx->refcounted_frames) {
|
||||||
avci->to_free = *picture;
|
avci->to_free = *picture;
|
||||||
@ -2105,7 +2102,8 @@ fail:
|
|||||||
guess_correct_pts(avctx,
|
guess_correct_pts(avctx,
|
||||||
picture->pkt_pts,
|
picture->pkt_pts,
|
||||||
picture->pkt_dts));
|
picture->pkt_dts));
|
||||||
}
|
} else
|
||||||
|
av_frame_unref(picture);
|
||||||
} else
|
} else
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user