[MPlayer-cvslog] r36866 - trunk/libmpcodecs/ad_ffmpeg.c
reimar
subversion at mplayerhq.hu
Sun Feb 16 17:30:05 CET 2014
Author: reimar
Date: Sun Feb 16 17:30:05 2014
New Revision: 36866
Log:
ad_ffmpeg: avoid deprecated request_channels.
Modified:
trunk/libmpcodecs/ad_ffmpeg.c
Modified: trunk/libmpcodecs/ad_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/ad_ffmpeg.c Sun Feb 16 17:30:03 2014 (r36865)
+++ trunk/libmpcodecs/ad_ffmpeg.c Sun Feb 16 17:30:05 2014 (r36866)
@@ -127,7 +127,10 @@ static int init(sh_audio_t *sh_audio)
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;
+ if (audio_output_channels == 1)
+ lavc_context->request_channel_layout = AV_CH_LAYOUT_MONO;
+ else if (audio_output_channels == 2)
+ lavc_context->request_channel_layout = AV_CH_LAYOUT_STEREO;
lavc_context->codec_tag = sh_audio->format; //FOURCC
lavc_context->codec_id = lavc_codec->id; // not sure if required, imho not --A'rpi
More information about the MPlayer-cvslog
mailing list