aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-06-28 05:21:33 +0200
committerReinhard Tartler <siretart@tauware.de>2013-06-30 16:03:27 +0200
commit9761abffb69d9cb24fc187ffb2900b039a1ffd5e (patch)
tree6191c0cb9eb62155e9c1a6c96be86eb0ce0071a8
parentfbeae4a95188d8042f0ff9f16836d49afa6f44af (diff)
downloadffmpeg-9761abffb69d9cb24fc187ffb2900b039a1ffd5e.tar.gz
wmapro: return early on unsupported condition
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org (cherry picked from commit 6652338f43ef623045912d7f28b61adea05d27ae) Signed-off-by: Reinhard Tartler <siretart@tauware.de> Conflicts: 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 eed38f6dc7..57c22a4063 100644
--- a/libavcodec/wmaprodec.c
+++ b/libavcodec/wmaprodec.c
@@ -722,6 +722,7 @@ static int decode_channel_transform(WMAProDecodeCtx* s)
if (get_bits1(&s->gb)) {
av_log_ask_for_sample(s->avctx,
"unsupported channel transform type\n");
+ return AVERROR_PATCHWELCOME;
}
} else {
chgroup->transform = 1;