Browse Source

mpeg12dec: if lavc's mpeg2 decoder was asked to drop a frame, it could still output an old frame, and mess up timestamps

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Joakim Plate Michael Niedermayer 14 years ago
parent
commit
340e6735fe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/mpeg12.c

+ 1
- 1
libavcodec/mpeg12.c View File

@@ -1968,7 +1968,7 @@ static int slice_end(AVCodecContext *avctx, AVFrame *pict)
ff_xvmc_field_end(s);

/* end of slice reached */
if (/*s->mb_y << field_pic == s->mb_height &&*/ !s->first_field) {
if (/*s->mb_y << field_pic == s->mb_height &&*/ !s->first_field && !s->first_slice) {
/* end of image */

s->current_picture_ptr->f.qscale_type = FF_QSCALE_TYPE_MPEG2;


Loading…
Cancel
Save