Commit b6c92667 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/rpza: fix +- error

Fixes Ticket3471
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent afe23e43
......@@ -94,11 +94,11 @@ static void rpza_decode_stream(RpzaContext *s)
chunk_size = bytestream2_get_be32(&s->gb) & 0x00FFFFFF;
/* If length mismatch use size from MOV file and try to decode anyway */
if (chunk_size != bytestream2_get_bytes_left(&s->gb) - 4)
if (chunk_size != bytestream2_get_bytes_left(&s->gb) + 4)
av_log(s->avctx, AV_LOG_WARNING,
"MOV chunk size %d != encoded chunk size %d\n",
chunk_size,
bytestream2_get_bytes_left(&s->gb) - 4
bytestream2_get_bytes_left(&s->gb) + 4
);
/* Number of 4x4 blocks in frame. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment