Commit 03fff09b authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/wmalosslessdec: Pass on error code from decode_tilehdr()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7cd46acd
...@@ -1038,9 +1038,9 @@ static int decode_frame(WmallDecodeCtx *s) ...@@ -1038,9 +1038,9 @@ static int decode_frame(WmallDecodeCtx *s)
len = get_bits(gb, s->log2_frame_size); len = get_bits(gb, s->log2_frame_size);
/* decode tile information */ /* decode tile information */
if (decode_tilehdr(s)) { if ((ret = decode_tilehdr(s))) {
s->packet_loss = 1; s->packet_loss = 1;
return 0; return ret;
} }
/* read drc info */ /* read drc info */
......
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