aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wmalosslessdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-11 01:58:36 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-11 01:58:36 +0100
commit03fff09b32171e0c76d104c02ebf578c7f4fe21d (patch)
tree3e517ec7c9efc8ab44d0e7d2be3ef439c5910392 /libavcodec/wmalosslessdec.c
parent7cd46acdd5f11e183c461962f12a78607866187e (diff)
downloadffmpeg-03fff09b32171e0c76d104c02ebf578c7f4fe21d.tar.gz
avcodec/wmalosslessdec: Pass on error code from decode_tilehdr()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wmalosslessdec.c')
-rw-r--r--libavcodec/wmalosslessdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index 71d8aa3cea..6e5100d3c5 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 */