1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Simplify check for leftover bytes after decoding for interplayvideo.

Originally committed as revision 18223 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Reimar Döffinger 2009-03-29 17:42:03 +00:00
parent 49da3b7df2
commit 3017d8e9d7

View File

@ -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);
}