[FFmpeg-cvslog] avcodec/cavsdec: fix low delay decoding

Michael Niedermayer git at videolan.org
Tue Jun 17 02:37:01 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jun 17 02:30:28 2014 +0200| [61df0819d49ba831948681a7e8aa1a6def26b1a9] | committer: Michael Niedermayer

avcodec/cavsdec: fix low delay decoding

Fixes Ticket1095

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=61df0819d49ba831948681a7e8aa1a6def26b1a9
---

 libavcodec/cavsdec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c
index 399b5b9..51f6e25 100644
--- a/libavcodec/cavsdec.c
+++ b/libavcodec/cavsdec.c
@@ -1199,8 +1199,8 @@ static int cavs_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
                 break;
             *got_frame = 1;
             if (h->cur.f->pict_type != AV_PICTURE_TYPE_B) {
-                if (h->DPB[1].f->data[0]) {
-                    if ((ret = av_frame_ref(data, h->DPB[1].f)) < 0)
+                if (h->DPB[!h->low_delay].f->data[0]) {
+                    if ((ret = av_frame_ref(data, h->DPB[!h->low_delay].f)) < 0)
                         return ret;
                 } else {
                     *got_frame = 0;



More information about the ffmpeg-cvslog mailing list