[PATCH 8/8] Make wmaprodec.c:decode_init() return AVERROR_INVALIDDATA in case of illegal number of channels specified, rather than return AVERROR_ENOTSUPP.
Stefano Sabatini
stefano.sabatini-lala
Sat Mar 13 21:40:37 CET 2010
---
libavcodec/wmaprodec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
index 2a597b4..fc26b2f 100644
--- a/libavcodec/wmaprodec.c
+++ b/libavcodec/wmaprodec.c
@@ -345,7 +345,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
if (s->num_channels < 0 || s->num_channels > WMAPRO_MAX_CHANNELS) {
av_log_ask_for_sample(avctx, "invalid number of channels\n");
- return AVERROR_NOTSUPP;
+ return AVERROR_INVALIDDATA;
}
INIT_VLC_STATIC(&sf_vlc, SCALEVLCBITS, HUFF_SCALE_SIZE,
--
1.6.6.1
--WK3l2KTTmXPVedZ6--
More information about the ffmpeg-devel
mailing list