]> git.sesse.net Git - ffmpeg/commitdiff
interplayvideo: remove a static variable.
authorAnton Khirnov <anton@khirnov.net>
Mon, 19 Nov 2012 09:09:54 +0000 (10:09 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 14 Jan 2013 10:36:45 +0000 (11:36 +0100)
libavcodec/interplayvideo.c

index 012df378af0d8fe25d694f3e0095fa19099d7770..76e7d0fe41e9cfc4049f92f99f6cc9818b3ac098 100644 (file)
@@ -882,12 +882,8 @@ static void ipvideo_decode_opcodes(IpvideoContext *s)
     int x, y;
     unsigned char opcode;
     int ret;
-    static int frame = 0;
     GetBitContext gb;
 
-    av_dlog(NULL, "------------------ frame %d\n", frame);
-    frame++;
-
     bytestream2_skip(&s->stream_ptr, 14); /* data starts 14 bytes in */
     if (!s->is_16bpp) {
         /* this is PAL8, so make the palette available */
@@ -923,7 +919,7 @@ static void ipvideo_decode_opcodes(IpvideoContext *s)
             }
             if (ret != 0) {
                 av_log(s->avctx, AV_LOG_ERROR, " Interplay video: decode problem on frame %d, @ block (%d, %d)\n",
-                       frame, x, y);
+                       s->avctx->frame_number, x, y);
                 return;
             }
         }