1001L
authorNick Kurshev <nickols_k@mail.ru>
Mon, 15 Jul 2002 07:43:22 +0000 (07:43 +0000)
committerNick Kurshev <nickols_k@mail.ru>
Mon, 15 Jul 2002 07:43:22 +0000 (07:43 +0000)
Originally committed as revision 761 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/svq1.c

index fe97970..6922614 100644 (file)
@@ -2633,12 +2633,12 @@ static int svq1_decode_frame(AVCodecContext *avctx,
       }
     }
 
+    pict->data[i] = s->current_picture[i];
+    pict->linesize[i] = width;
     /* update backward reference frame */
-    if (!s->hurry_up)
+    if (s->pict_type != SVQ1_FRAME_DROPPABLE)
     {
        uint8_t *tmp = s->last_picture[i];
-       pict->data[i] = s->current_picture[i];
-       pict->linesize[i] = width;
        s->last_picture[i] = s->current_picture[i];
        s->current_picture[i] = tmp;
     }