You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 22:24:04 +02:00
alacdec: ask for a sample for unsupported sample depths.
Also return AVERROR_PATCHWELCOME.
This commit is contained in:
@ -617,9 +617,9 @@ static av_cold int alac_decode_init(AVCodecContext * avctx)
|
|||||||
break;
|
break;
|
||||||
case 24: avctx->sample_fmt = AV_SAMPLE_FMT_S32;
|
case 24: avctx->sample_fmt = AV_SAMPLE_FMT_S32;
|
||||||
break;
|
break;
|
||||||
default: av_log(avctx, AV_LOG_ERROR, "Sample depth %d is not supported.\n",
|
default: av_log_ask_for_sample(avctx, "Sample depth %d is not supported.\n",
|
||||||
alac->setinfo_sample_size);
|
alac->setinfo_sample_size);
|
||||||
return -1;
|
return AVERROR_PATCHWELCOME;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (alac->numchannels < 1) {
|
if (alac->numchannels < 1) {
|
||||||
|
Reference in New Issue
Block a user