Showing the changes to libavfilter/avfiltergraph.c (1 of 17 files). Show all
Unified · Split
| @@ -424,7 +424,7 @@ static int pick_format(AVFilterLink *link, AVFilterLink *ref) · 423 unmodified lines | ||
| 424 | 424 | |
| 425 | 425 | if (link->type == AVMEDIA_TYPE_VIDEO) { |
| 426 | 426 | if(ref && ref->type == AVMEDIA_TYPE_VIDEO){ |
| 427 | − int has_alpha= av_pix_fmt_descriptors[ref->format].nb_components % 2 == 0; | |
| 427 | + int has_alpha= av_pix_fmt_desc_get(ref->format)->nb_components % 2 == 0; | |
| 428 | 428 | enum AVPixelFormat best= AV_PIX_FMT_NONE; |
| 429 | 429 | int i; |
| 430 | 430 | for (i=0; i<link->in_formats->format_count; i++) { |