From 3017d8e9d718e47651d3496fcd92d0789f9b0f97 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Reimar=20D=C3=B6ffinger?= Date: Sun, 29 Mar 2009 17:42:03 +0000 Subject: [PATCH] Simplify check for leftover bytes after decoding for interplayvideo. Originally committed as revision 18223 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/interplayvideo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/interplayvideo.c b/libavcodec/interplayvideo.c index 28840da..529c319 100644 --- a/libavcodec/interplayvideo.c +++ b/libavcodec/interplayvideo.c @@ -825,8 +825,7 @@ static void ipvideo_decode_opcodes(IpvideoContext *s) } } } - 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); } -- 2.7.4