avfilter/vf_waveform: set color range for output frames

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2016-03-20 10:00:53 +01:00
parent 0ffa9e6eba
commit 50f4b64c54

View File

@ -2616,6 +2616,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
return AVERROR(ENOMEM);
}
out->pts = in->pts;
av_frame_set_color_range(out, AVCOL_RANGE_JPEG);
for (k = 0; k < s->ncomp; k++) {
if (s->bits <= 8) {