History

Replace usage of the deprecated av_pix_fmt_descriptors array with av_pix_fmt_desc_get

Hendrik Leppkes committed 14 years ago

Commit 79393a81 parent 2c5b92f17 files · +22 −22Browse files

Showing the changes to libavfilter/avfiltergraph.c (1 of 17 files). Show all

Unified · Split

libavfilter/avfiltergraph.c+1−1
@@ -424,7 +424,7 @@ static int pick_format(AVFilterLink *link, AVFilterLink *ref) · 423 unmodified lines
424424
425425 if (link->type == AVMEDIA_TYPE_VIDEO) {
426426 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;
428428 enum AVPixelFormat best= AV_PIX_FMT_NONE;
429429 int i;
430430 for (i=0; i<link->in_formats->format_count; i++) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t