avfilter/vf_scale: Add warning for AVCOL_SPC_YCGCO

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-04-13 13:45:41 +02:00
parent c69ff12dc3
commit d5dcd94630

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) {