Browse Source

avfilter/setfield, setrange : set color property to auto

tags/n4.1
Martin Vignali 7 years ago
parent
commit
cfdbefdd90
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      libavfilter/vf_setparams.c

+ 6
- 0
libavfilter/vf_setparams.c View File

@@ -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;
}



Loading…
Cancel
Save