OSDN Git Service

wmapro: return early on unsupported condition
authorLuca Barbato <lu_zero@gentoo.org>
Fri, 28 Jun 2013 03:21:33 +0000 (05:21 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 28 Jun 2013 11:16:00 +0000 (13:16 +0200)
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/wmaprodec.c

index 8fdfbf8..7ea5dd9 100644 (file)
@@ -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;