Browse Source

swr: fix test program.

The number of used channels need to be reset to zero when
swr_alloc_set_opts() is called successive times.

This is a regression introduced in c8136ebd.
tags/n0.9
Clément Bœsch 14 years ago
parent
commit
afb0470a25
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libswresample/swresample.c

+ 1
- 0
libswresample/swresample.c View File

@@ -105,6 +105,7 @@ struct SwrContext *swr_alloc_set_opts(struct SwrContext *s,
av_opt_set_int(s, "tsf", AV_SAMPLE_FMT_S16, 0);
av_opt_set_int(s, "ich", av_get_channel_layout_nb_channels(s-> in_ch_layout), 0);
av_opt_set_int(s, "och", av_get_channel_layout_nb_channels(s->out_ch_layout), 0);
av_opt_set_int(s, "uch", 0, 0);
return s;
}



Loading…
Cancel
Save