Browse Source

ffmpeg: fix -map_channel being ignored when resampling is not needed.

tags/n0.11
Clément Bœsch Clément Bœsch 13 years ago
parent
commit
c673671333
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ffmpeg.c

+ 1
- 1
ffmpeg.c View File

@@ -1245,7 +1245,7 @@ need_realloc:
ost->sync_opts = lrintf(get_sync_ipts(ost) * enc->sample_rate) -
av_fifo_size(ost->fifo) / (enc->channels * osize); // FIXME wrong

if (ost->audio_resample) {
if (ost->audio_resample || ost->audio_channels_mapped) {
buftmp = audio_buf;
size_out = swr_convert(ost->swr, ( uint8_t*[]){buftmp}, audio_buf_size / (enc->channels * osize),
(const uint8_t*[]){buf }, size / (dec->channels * isize));


Loading…
Cancel
Save