Originally committed as revision 761 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Nick Kurshev 2002-07-15 07:43:22 +00:00
parent 225f9c44cf
commit cd141f4c22

View File

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