[FFmpeg-cvslog] avfilter/setfield, setrange : set color property to auto
Martin Vignali
git at videolan.org
Mon Oct 22 12:27:11 EEST 2018
ffmpeg | branch: master | Martin Vignali <martin.vignali at gmail.com> | Sun Oct 21 22:47:57 2018 +0200| [cfdbefdd90b0d5d88624decd25802ac99ea5d859] | committer: Martin Vignali
avfilter/setfield, setrange : set color property to auto
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cfdbefdd90b0d5d88624decd25802ac99ea5d859
---
libavfilter/vf_setparams.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libavfilter/vf_setparams.c b/libavfilter/vf_setparams.c
index 6d8ab188c0..dfd7efc314 100644
--- a/libavfilter/vf_setparams.c
+++ b/libavfilter/vf_setparams.c
@@ -193,6 +193,9 @@ static av_cold int init_setrange(AVFilterContext *ctx)
SetParamsContext *s = ctx->priv;
s->field_mode = MODE_AUTO;/* set field mode to auto */
+ s->color_primaries = -1;
+ s->color_trc = -1;
+ s->colorspace = -1;
return 0;
}
@@ -224,6 +227,9 @@ static av_cold int init_setfield(AVFilterContext *ctx)
SetParamsContext *s = ctx->priv;
s->color_range = -1;/* set range mode to auto */
+ s->color_primaries = -1;
+ s->color_trc = -1;
+ s->colorspace = -1;
return 0;
}
More information about the ffmpeg-cvslog
mailing list