Commit afe23e43 authored by Michael Niedermayer's avatar Michael Niedermayer

vcodec/rpza: print mismatching size in case of error

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent cabcd8ff
...@@ -95,7 +95,11 @@ static void rpza_decode_stream(RpzaContext *s) ...@@ -95,7 +95,11 @@ static void rpza_decode_stream(RpzaContext *s)
/* If length mismatch use size from MOV file and try to decode anyway */ /* 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 != encoded chunk size\n"); 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
);
/* Number of 4x4 blocks in frame. */ /* Number of 4x4 blocks in frame. */
total_blocks = ((s->avctx->width + 3) / 4) * ((s->avctx->height + 3) / 4); total_blocks = ((s->avctx->width + 3) / 4) * ((s->avctx->height + 3) / 4);
......
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