Browse Source

avfilter/vf_scale: Add warning for AVCOL_SPC_YCGCO

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 10 years ago
parent
commit
d5dcd94630
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavfilter/vf_scale.c

+ 3
- 0
libavfilter/vf_scale.c View File

@@ -450,6 +450,9 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
char buf[32];
int in_range;

if (av_frame_get_colorspace(in) == AVCOL_SPC_YCGCO)
av_log(link->dst, AV_LOG_WARNING, "Detected unsupported YCgCo colorspace.\n");

if( in->width != link->w
|| in->height != link->h
|| in->format != link->format) {


Loading…
Cancel
Save