Showing the changes to libavfilter/avfiltergraph.c (1 of 6 files). Show all
Unified · Split
| @@ -203,8 +203,12 @@ static void pick_format(AVFilterLink *link) · 202 unmodified lines | |||
| 203 | link->channel_layout = link->in_chlayouts->formats[0]; | 203 | link->channel_layout = link->in_chlayouts->formats[0]; |
| 204 | avfilter_formats_unref(&link->in_chlayouts); | 204 | avfilter_formats_unref(&link->in_chlayouts); |
| 205 | avfilter_formats_unref(&link->out_chlayouts); | 205 | avfilter_formats_unref(&link->out_chlayouts); |
| 206 | } | ||
| 207 | 206 | ||
| 207 | link->in_packing->format_count = 1; | ||
| 208 | link->planar = link->in_packing->formats[0] == AVFILTER_PLANAR; | ||
| 209 | avfilter_formats_unref(&link->in_packing); | ||
| 210 | avfilter_formats_unref(&link->out_packing); | ||
| 211 | } | ||
| 208 | } | 212 | } |
| 209 | 213 | ||
| 210 | static void pick_formats(AVFilterGraph *graph) | 214 | static void pick_formats(AVFilterGraph *graph) |