summaryrefslogtreecommitdiff
path: root/libavfilter/vf_scale.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-13 13:45:41 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-13 13:45:41 +0200
commitd5dcd94630ca657f9c17d5e52fa9bbddbb32f8b6 (patch)
tree87c0dfe45cd3524d7e09dbb17ed25ba0bb0eb96c /libavfilter/vf_scale.c
parentc69ff12dc3b420cce327c23d06437a831a439316 (diff)
avfilter/vf_scale: Add warning for AVCOL_SPC_YCGCO
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_scale.c')
-rw-r--r--libavfilter/vf_scale.c3
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) {