diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-12-18 13:21:27 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-12-18 13:43:45 -0500 |
commit | bc78ceec2be6613c265387017221c7ceda15aa7d (patch) | |
tree | 45f3d3040758a705c17960400bfe36d005e86afe /libavcodec/4xm.c | |
parent | 93fc5a9ff66637475025433c91876b80422f7bb4 (diff) | |
download | ffmpeg-bc78ceec2be6613c265387017221c7ceda15aa7d.tar.gz |
4xm: remove unneeded check for remaining unused data.
This is unnecessary complication that only prints a message and does not
affect decoding.
Diffstat (limited to 'libavcodec/4xm.c')
-rw-r--r-- | libavcodec/4xm.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c index 21bde52fee..0ae10d5905 100644 --- a/libavcodec/4xm.c +++ b/libavcodec/4xm.c @@ -415,15 +415,6 @@ static int decode_p_frame(FourXContext *f, const uint8_t *buf, int length){ dst += 8*stride; } - if( bitstream_size != (get_bits_count(&f->gb)+31)/32*4 - || (((const char*)f->wordstream - (const char*)buf + 2)&~2) != extra + bitstream_size + wordstream_size - || (((const char*)f->bytestream - (const char*)buf + 3)&~3) != extra + bitstream_size + wordstream_size + bytestream_size) - av_log(f->avctx, AV_LOG_ERROR, " %d %td %td bytes left\n", - bitstream_size - (get_bits_count(&f->gb)+31)/32*4, - -(((const char*)f->bytestream - (const char*)buf + 3)&~3) + (extra + bitstream_size + wordstream_size + bytestream_size), - -(((const char*)f->wordstream - (const char*)buf + 2)&~2) + (extra + bitstream_size + wordstream_size) - ); - return 0; } |