diff options
author | Juanjo <pulento@users.sourceforge.net> | 2002-03-16 02:41:00 +0000 |
---|---|---|
committer | Juanjo <pulento@users.sourceforge.net> | 2002-03-16 02:41:00 +0000 |
commit | 1cb0edb40b8e94e1a50ad40c40d43e34ed8435fe (patch) | |
tree | 039381a325e1315f034c025e04137e33c3e6759f /libavcodec/utils.c | |
parent | 4278e7a6f5a9c2fd3e43efdeee583972fe5fb72f (diff) | |
download | ffmpeg-1cb0edb40b8e94e1a50ad40c40d43e34ed8435fe.tar.gz |
- 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
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 2d7b6a9070..406966c729 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -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; } |