aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/alac.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-10-09 14:23:44 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-10-26 11:50:17 -0400
commitb316af7a7c6b20ded1fd996933e47d4feb89aac9 (patch)
treeeb9359fbd8c0509d4a00a805d05c5104de665e00 /libavcodec/alac.c
parent63cf54df7a0fabc9503af4457a7bf47e622efea1 (diff)
downloadffmpeg-b316af7a7c6b20ded1fd996933e47d4feb89aac9.tar.gz
alacdec: ask for a sample for unsupported sample depths.
Also return AVERROR_PATCHWELCOME.
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r--libavcodec/alac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 6b10bf6a78..85a441abe8 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -617,9 +617,9 @@ static av_cold int alac_decode_init(AVCodecContext * avctx)
break;
case 24: avctx->sample_fmt = AV_SAMPLE_FMT_S32;
break;
- default: av_log(avctx, AV_LOG_ERROR, "Sample depth %d is not supported.\n",
- alac->setinfo_sample_size);
- return -1;
+ default: av_log_ask_for_sample(avctx, "Sample depth %d is not supported.\n",
+ alac->setinfo_sample_size);
+ return AVERROR_PATCHWELCOME;
}
if (alac->numchannels < 1) {