Showing the changes to libavfilter/avfiltergraph.c (1 of 6 files). Show all
Unified · Split
| @@ -473,6 +473,7 @@ static int pick_format(AVFilterLink *link, AVFilterLink *ref) · 472 unmodified lines | |||
| 473 | } | 473 | } |
| 474 | link->in_channel_layouts->nb_channel_layouts = 1; | 474 | link->in_channel_layouts->nb_channel_layouts = 1; |
| 475 | link->channel_layout = link->in_channel_layouts->channel_layouts[0]; | 475 | link->channel_layout = link->in_channel_layouts->channel_layouts[0]; |
| 476 | link->channels = av_get_channel_layout_nb_channels(link->channel_layout); | ||
| 476 | } | 477 | } |
| 477 | 478 | ||
| 478 | ff_formats_unref(&link->in_formats); | 479 | ff_formats_unref(&link->in_formats); |