comparison libmpcodecs/ad_ffmpeg.c @ 34563:e659a561af75

Fix format string for -a52drc option.
author reimar
date Fri, 03 Feb 2012 20:33:32 +0000
parents c897dbc5f1de
children e48eefbb92d2
comparison
equal deleted inserted replaced
34562:fe172cd7b8e8 34563:e659a561af75
104 } 104 }
105 105
106 lavc_context = avcodec_alloc_context3(lavc_codec); 106 lavc_context = avcodec_alloc_context3(lavc_codec);
107 sh_audio->context=lavc_context; 107 sh_audio->context=lavc_context;
108 108
109 snprintf(tmpstr, sizeof(tmpstr), "%i", drc_level); 109 snprintf(tmpstr, sizeof(tmpstr), "%f", drc_level);
110 av_dict_set(&opts, "drc_scale", tmpstr, 0); 110 av_dict_set(&opts, "drc_scale", tmpstr, 0);
111 lavc_context->sample_rate = sh_audio->samplerate; 111 lavc_context->sample_rate = sh_audio->samplerate;
112 lavc_context->bit_rate = sh_audio->i_bps * 8; 112 lavc_context->bit_rate = sh_audio->i_bps * 8;
113 if(sh_audio->wf){ 113 if(sh_audio->wf){
114 lavc_context->channels = sh_audio->wf->nChannels; 114 lavc_context->channels = sh_audio->wf->nChannels;