avcodec/wmalosslessdec: Pass on error code from decode_tilehdr()
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Jan 2014 00:58:36 +0000 (01:58 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 13 Jan 2014 15:10:09 +0000 (16:10 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 03fff09b32171e0c76d104c02ebf578c7f4fe21d)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/wmalosslessdec.c

index 7a80248..6386930 100644 (file)
@@ -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 */