You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/cavsdec: fix low delay decoding
Fixes Ticket1095 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1199,8 +1199,8 @@ static int cavs_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
|
|||||||
break;
|
break;
|
||||||
*got_frame = 1;
|
*got_frame = 1;
|
||||||
if (h->cur.f->pict_type != AV_PICTURE_TYPE_B) {
|
if (h->cur.f->pict_type != AV_PICTURE_TYPE_B) {
|
||||||
if (h->DPB[1].f->data[0]) {
|
if (h->DPB[!h->low_delay].f->data[0]) {
|
||||||
if ((ret = av_frame_ref(data, h->DPB[1].f)) < 0)
|
if ((ret = av_frame_ref(data, h->DPB[!h->low_delay].f)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
} else {
|
} else {
|
||||||
*got_frame = 0;
|
*got_frame = 0;
|
||||||
|
Reference in New Issue
Block a user