- Bug fix MPEG-2 decoder to handle "repeat_first_field" (Telecine)

- Hack in MPEG-2 demux to cope with buggy VOBs.

Originally committed as revision 333 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Juanjo
2002-03-16 02:41:00 +00:00
parent 4278e7a6f5
commit 1cb0edb40b
3 changed files with 33 additions and 6 deletions

View File

@@ -113,7 +113,8 @@ int avcodec_decode_video(AVCodecContext *avctx, AVPicture *picture,
ret = avctx->codec->decode(avctx, picture, got_picture_ptr,
buf, buf_size);
avctx->frame_number++;
if (*got_picture_ptr)
avctx->frame_number++;
return ret;
}