History

Set channel_layout for mpegaudio

Kieran Kunhya committed 15 years ago

Commit e10976e1 parent 4a355651 file · +1 −0Browse files

Unified · Split

libavcodec/mpegaudiodec.c+1−0
@@ -2054,6 +2054,7 @@ static int decode_frame(AVCodecContext * avctx, · 2053 unmodified lines
20542054 }
20552055 /* update codec info */
20562056 avctx->channels = s->nb_channels;
2057+ avctx->channel_layout = s->nb_channels == 1 ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;
20572058 if (!avctx->bit_rate)
20582059 avctx->bit_rate = s->bit_rate;
20592060 avctx->sub_id = s->layer;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t