diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-13 14:45:41 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-13 14:45:41 +0300 |
commit | d5dcd94630ca657f9c17d5e52fa9bbddbb32f8b6 (patch) | |
tree | 87c0dfe45cd3524d7e09dbb17ed25ba0bb0eb96c /libavfilter | |
parent | c69ff12dc3b420cce327c23d06437a831a439316 (diff) |
avfilter/vf_scale: Add warning for AVCOL_SPC_YCGCO
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_scale.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index f77884c27a..2a3d00808d 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -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) { |