comparison libmpcodecs/ad_ffmpeg.c @ 29912:49f3853e9105

Remove unused variable.
author reimar
date Sun, 22 Nov 2009 13:08:43 +0000
parents 282ea4fbe87d
children 9e76a5f9e717
comparison
equal deleted inserted replaced
29911:74ebb2b03d90 29912:49f3853e9105
177 if(y<x) sh_audio->ds->buffer_pos+=y-x; // put back data (HACK!) 177 if(y<x) sh_audio->ds->buffer_pos+=y-x; // put back data (HACK!)
178 if(len2>0){ 178 if(len2>0){
179 if (((AVCodecContext *)sh_audio->context)->channels >= 5) { 179 if (((AVCodecContext *)sh_audio->context)->channels >= 5) {
180 int samplesize = av_get_bits_per_sample_format(((AVCodecContext *) 180 int samplesize = av_get_bits_per_sample_format(((AVCodecContext *)
181 sh_audio->context)->sample_fmt) / 8; 181 sh_audio->context)->sample_fmt) / 8;
182 const char *codec=((AVCodecContext*)sh_audio->context)->codec->name;
183 reorder_channel_nch(buf, AF_CHANNEL_LAYOUT_LAVC_DEFAULT, 182 reorder_channel_nch(buf, AF_CHANNEL_LAYOUT_LAVC_DEFAULT,
184 AF_CHANNEL_LAYOUT_MPLAYER_DEFAULT, 183 AF_CHANNEL_LAYOUT_MPLAYER_DEFAULT,
185 ((AVCodecContext *)sh_audio->context)->channels, 184 ((AVCodecContext *)sh_audio->context)->channels,
186 len2 / samplesize, samplesize); 185 len2 / samplesize, samplesize);
187 } 186 }