History

avfilter/vf_zscale: also check formats

Paul B Mahol committed 4 years ago

Commit 4ac85ae1 parent f629ea21 file · +2 −1Browse files

Unified · Split

libavfilter/vf_zscale.c+2−1
@@ -762,7 +762,8 @@ static int filter_frame(AVFilterLink *link, AVFrame *in) · 761 unmodified lines
762 762
763 //we need to use this filter if something is different for an input and output only763 //we need to use this filter if something is different for an input and output only
764 //otherwise - just copy the input frame to the output764 //otherwise - just copy the input frame to the output
765 if ((link->w != outlink->w) ||765 if ((link->format != outlink->format) ||
766 (link->w != outlink->w) ||
766 (link->h != outlink->h) ||767 (link->h != outlink->h) ||
767 (s->src_format.chroma_location != s->dst_format.chroma_location) ||768 (s->src_format.chroma_location != s->dst_format.chroma_location) ||
768 (s->src_format.color_family !=s->dst_format.color_family) ||769 (s->src_format.color_family !=s->dst_format.color_family) ||

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