diff utils.c @ 267:e10840e4f773 libavcodec

- Bug fix MPEG-2 decoder to handle "repeat_first_field" (Telecine) - Hack in MPEG-2 demux to cope with buggy VOBs.
author pulento
date Sat, 16 Mar 2002 02:41:00 +0000
parents e1bacfb3f51f
children 9a931fd8d06c
line wrap: on
line diff
--- a/utils.c	Fri Mar 15 14:57:17 2002 +0000
+++ b/utils.c	Sat Mar 16 02:41:00 2002 +0000
@@ -113,7 +113,8 @@
 
     ret = avctx->codec->decode(avctx, picture, got_picture_ptr, 
                                buf, buf_size);
-    avctx->frame_number++;
+    if (*got_picture_ptr)                           
+        avctx->frame_number++;
     return ret;
 }