You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
g726: Do not try to decode more than one channel.
Ask for a sample instead. Reviewed-by: Derek Buitenhuis
This commit is contained in:
@@ -401,6 +401,10 @@ static av_cold int g726_decode_init(AVCodecContext *avctx)
|
||||
{
|
||||
G726Context* c = avctx->priv_data;
|
||||
|
||||
if(avctx->channels > 1){
|
||||
avpriv_request_sample(avctx, "Decoding more than one channel");
|
||||
return AVERROR_PATCHWELCOME;
|
||||
}
|
||||
avctx->channels = 1;
|
||||
avctx->channel_layout = AV_CH_LAYOUT_MONO;
|
||||
|
||||
|
Reference in New Issue
Block a user