This reverts commit 01c21653eee53a353ae887a47cd2b48165902383. It was applied by accident before it could be reviewed.
Unified · Split
| @@ -178,7 +178,7 @@ int main(int argc, char **argv) · 177 unmodified lines | |||
| 178 | break; | 178 | break; |
| 179 | case AVMEDIA_TYPE_AUDIO: | 179 | case AVMEDIA_TYPE_AUDIO: |
| 180 | st->stream->codec->channel_layout = st->link->channel_layout; | 180 | st->stream->codec->channel_layout = st->link->channel_layout; |
| 181 | st->stream->codec->channels = st->link->channels; | 181 | st->stream->codec->channels = avfilter_link_get_channels(st->link); |
| 182 | st->stream->codec->sample_rate = st->link->sample_rate; | 182 | st->stream->codec->sample_rate = st->link->sample_rate; |
| 183 | st->stream->codec->sample_fmt = st->link->format; | 183 | st->stream->codec->sample_fmt = st->link->format; |
| 184 | st->stream->codec->codec_id = | 184 | st->stream->codec->codec_id = |