From aaaafc300df691a3b6f6f1a1837f772e81b04086 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 11 Jan 2014 01:58:36 +0100 Subject: [PATCH] avcodec/wmalosslessdec: Pass on error code from decode_tilehdr() Signed-off-by: Michael Niedermayer (cherry picked from commit 03fff09b32171e0c76d104c02ebf578c7f4fe21d) Signed-off-by: Michael Niedermayer --- libavcodec/wmalosslessdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c index 7a80248ffc..6386930f39 100644 --- a/libavcodec/wmalosslessdec.c +++ b/libavcodec/wmalosslessdec.c @@ -1038,9 +1038,9 @@ static int decode_frame(WmallDecodeCtx *s) len = get_bits(gb, s->log2_frame_size); /* decode tile information */ - if (decode_tilehdr(s)) { + if ((ret = decode_tilehdr(s))) { s->packet_loss = 1; - return 0; + return ret; } /* read drc info */