Mercurial > libavcodec.hg
changeset 9275:67cf9d31724c libavcodec
Simplify check for leftover bytes after decoding for interplayvideo.
author | reimar |
---|---|
date | Sun, 29 Mar 2009 17:42:03 +0000 |
parents | b0dcca654e18 |
children | c80d14982fba |
files | interplayvideo.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/interplayvideo.c Sun Mar 29 17:35:22 2009 +0000 +++ b/interplayvideo.c Sun Mar 29 17:42:03 2009 +0000 @@ -825,8 +825,7 @@ } } } - 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); }