aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-03-29 17:42:03 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-03-29 17:42:03 +0000
commit3017d8e9d718e47651d3496fcd92d0789f9b0f97 (patch)
treeca5e1dd38f65f04a5663984330800e62a77a2eee /libavcodec
parent49da3b7df2ae54d3512dd9b26ae20f1beb153cf0 (diff)
downloadffmpeg-3017d8e9d718e47651d3496fcd92d0789f9b0f97.tar.gz
Simplify check for leftover bytes after decoding for interplayvideo.
Originally committed as revision 18223 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/interplayvideo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/interplayvideo.c b/libavcodec/interplayvideo.c
index 28840da82b..529c3193ef 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);
}