summaryrefslogtreecommitdiff
path: root/libavcodec/wmaprodec.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-06-28 05:21:33 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-06-28 13:16:00 +0200
commit6652338f43ef623045912d7f28b61adea05d27ae (patch)
treefcd18ac44b6b4671594b8bbf2c53bfef53bcec38 /libavcodec/wmaprodec.c
parente30b068ef79f604ff439418da07f7e2efd01d4ea (diff)
wmapro: return early on unsupported condition
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/wmaprodec.c')
-rw-r--r--libavcodec/wmaprodec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
index 8fdfbf866f..7ea5dd989b 100644
--- a/libavcodec/wmaprodec.c
+++ b/libavcodec/wmaprodec.c
@@ -716,6 +716,7 @@ static int decode_channel_transform(WMAProDecodeCtx* s)
if (get_bits1(&s->gb)) {
avpriv_request_sample(s->avctx,
"Unknown channel transform type");
+ return AVERROR_PATCHWELCOME;
}
} else {
chgroup->transform = 1;