[FFmpeg-cvslog] avfilter/vf_scale: Add warning for AVCOL_SPC_YCGCO

Michael Niedermayer git at videolan.org
Mon Apr 13 14:03:15 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Apr 13 13:45:41 2015 +0200| [d5dcd94630ca657f9c17d5e52fa9bbddbb32f8b6] | committer: Michael Niedermayer

avfilter/vf_scale: Add warning for AVCOL_SPC_YCGCO

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d5dcd94630ca657f9c17d5e52fa9bbddbb32f8b6
---

 libavfilter/vf_scale.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index f77884c..2a3d008 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) {



More information about the ffmpeg-cvslog mailing list