aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/truespeech.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-12-23 18:10:05 +0100
committerDiego Biurrun <diego@biurrun.de>2012-12-23 18:56:56 +0100
commitf3298f12997eb4b7ad203766f768f92e3dd72a2a (patch)
treee349cd427d9cfcf74aae21a85cff911c2aacaee6 /libavcodec/truespeech.c
parented40b6bf07342dc80f616e909f0e6fec4073ade4 (diff)
downloadffmpeg-f3298f12997eb4b7ad203766f768f92e3dd72a2a.tar.gz
Return proper error code after av_log_ask_for_sample()
Diffstat (limited to 'libavcodec/truespeech.c')
-rw-r--r--libavcodec/truespeech.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/truespeech.c b/libavcodec/truespeech.c
index 66e3427b78..486e41f895 100644
--- a/libavcodec/truespeech.c
+++ b/libavcodec/truespeech.c
@@ -65,7 +65,7 @@ static av_cold int truespeech_decode_init(AVCodecContext * avctx)
if (avctx->channels != 1) {
av_log_ask_for_sample(avctx, "Unsupported channel count: %d\n", avctx->channels);
- return AVERROR(EINVAL);
+ return AVERROR_PATCHWELCOME;
}
avctx->channel_layout = AV_CH_LAYOUT_MONO;