Commit 43229d60 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '7388c0c5'

* commit '7388c0c5':
  indeo: Properly forward the error codes
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 16fd75ce 7388c0c5
...@@ -808,8 +808,16 @@ static int decode_band(IVI45DecContext *ctx, ...@@ -808,8 +808,16 @@ static int decode_band(IVI45DecContext *ctx,
break; break;
result = ivi_decode_blocks(&ctx->gb, band, tile, avctx); result = ivi_decode_blocks(&ctx->gb, band, tile, avctx);
if (result < 0 || ((get_bits_count(&ctx->gb) - pos) >> 3) != tile->data_size) { if (result < 0) {
av_log(avctx, AV_LOG_ERROR, "Corrupted tile data encountered!\n"); av_log(avctx, AV_LOG_ERROR,
"Corrupted tile data encountered!\n");
break;
}
if (((get_bits_count(&ctx->gb) - pos) >> 3) != tile->data_size) {
av_log(avctx, AV_LOG_ERROR,
"Tile data_size mismatch!\n");
result = AVERROR_INVALIDDATA;
break; break;
} }
......
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