Mercurial > mplayer.hg
diff libmpcodecs/ad_ffmpeg.c @ 36469:4eb54147c488
Set audio channel_layout from container when using FFmpeg decoder.
This will be needed for the Atrac 3 Plus decoder.
| author | cehoyos |
|---|---|
| date | Wed, 01 Jan 2014 22:17:01 +0000 |
| parents | 741131acf556 |
| children | ee000da6fa82 |
line wrap: on
line diff
--- a/libmpcodecs/ad_ffmpeg.c Wed Jan 01 22:13:47 2014 +0000 +++ b/libmpcodecs/ad_ffmpeg.c Wed Jan 01 22:17:01 2014 +0000 @@ -126,6 +126,7 @@ lavc_context->block_align = sh_audio->wf->nBlockAlign; lavc_context->bits_per_coded_sample = sh_audio->wf->wBitsPerSample; } + lavc_context->channel_layout = sh_audio->channel_layout; lavc_context->request_channels = audio_output_channels; lavc_context->codec_tag = sh_audio->format; //FOURCC lavc_context->codec_id = lavc_codec->id; // not sure if required, imho not --A'rpi
