[FFmpeg-cvslog] r18223 - trunk/libavcodec/interplayvideo.c

reimar subversion
Sun Mar 29 19:42:04 CEST 2009


Author: reimar
Date: Sun Mar 29 19:42:03 2009
New Revision: 18223

Log:
Simplify check for leftover bytes after decoding for interplayvideo.

Modified:
   trunk/libavcodec/interplayvideo.c

Modified: trunk/libavcodec/interplayvideo.c
==============================================================================
--- trunk/libavcodec/interplayvideo.c	Sun Mar 29 19:35:22 2009	(r18222)
+++ trunk/libavcodec/interplayvideo.c	Sun Mar 29 19:42:03 2009	(r18223)
@@ -825,8 +825,7 @@ static void ipvideo_decode_opcodes(Ipvid
             }
         }
     }
-    if ((s->stream_ptr != s->stream_end) &&
-        (s->stream_ptr + 1 != s->stream_end)) {
+    if (s->stream_end - s->stream_ptr > 1) {
         av_log(s->avctx, AV_LOG_ERROR, " Interplay video: decode finished with %td bytes left over\n",
             s->stream_end - s->stream_ptr);
     }



More information about the ffmpeg-cvslog mailing list