Mercurial > mplayer.hg
comparison libmpcodecs/ad_ffmpeg.c @ 37110:4e00eb3f4c76
ad_ffmpeg: Set up audio format already during init.
It seems otherwise mencoder can get confused.
author | reimar |
---|---|
date | Tue, 20 May 2014 19:29:31 +0000 |
parents | a706bf2ed700 |
children |
comparison
equal
deleted
inserted
replaced
37109:a625ce680fc3 | 37110:4e00eb3f4c76 |
---|---|
188 case AV_SAMPLE_FMT_FLT: case AV_SAMPLE_FMT_FLTP: | 188 case AV_SAMPLE_FMT_FLT: case AV_SAMPLE_FMT_FLTP: |
189 break; | 189 break; |
190 default: | 190 default: |
191 return 0; | 191 return 0; |
192 } | 192 } |
193 setup_format(sh_audio, sh_audio->context); | |
193 return 1; | 194 return 1; |
194 } | 195 } |
195 | 196 |
196 static void uninit(sh_audio_t *sh) | 197 static void uninit(sh_audio_t *sh) |
197 { | 198 { |