comparison libmpcodecs/ad_ffmpeg.c @ 31220:002cdc635c03

Use the -a52drc option also for the libavcodec decoder.
author reimar
date Sun, 30 May 2010 16:46:31 +0000
parents b7040d298579
children 4541f1921482
comparison
equal deleted inserted replaced
31219:e02877d8647e 31220:002cdc635c03
73 } 73 }
74 74
75 lavc_context = avcodec_alloc_context(); 75 lavc_context = avcodec_alloc_context();
76 sh_audio->context=lavc_context; 76 sh_audio->context=lavc_context;
77 77
78 lavc_context->drc_scale = drc_level;
78 lavc_context->sample_rate = sh_audio->samplerate; 79 lavc_context->sample_rate = sh_audio->samplerate;
79 lavc_context->bit_rate = sh_audio->i_bps * 8; 80 lavc_context->bit_rate = sh_audio->i_bps * 8;
80 if(sh_audio->wf){ 81 if(sh_audio->wf){
81 lavc_context->channels = sh_audio->wf->nChannels; 82 lavc_context->channels = sh_audio->wf->nChannels;
82 lavc_context->sample_rate = sh_audio->wf->nSamplesPerSec; 83 lavc_context->sample_rate = sh_audio->wf->nSamplesPerSec;