History

avfilter/vf_zscale: also check formats

Paul B Mahol committed 4 years ago

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

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_zscale.c+2−1
@@ -762,7 +762,8 @@ static int filter_frame(AVFilterLink *link, AVFrame *in) · 761 unmodified lines
762762
763763 //we need to use this filter if something is different for an input and output only
764764 //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) ||
766767 (link->h != outlink->h) ||
767768 (s->src_format.chroma_location != s->dst_format.chroma_location) ||
768769 (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