1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

avfilter/avf_showspectrum: set color range to frame

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2016-01-09 20:09:52 +01:00
parent cbcc88c039
commit cbad37e5bf

View File

@ -370,6 +370,7 @@ static int config_output(AVFilterLink *outlink)
memset(outpicref->data[1] + i * outpicref->linesize[1], 128, outlink->w);
memset(outpicref->data[2] + i * outpicref->linesize[2], 128, outlink->w);
}
av_frame_set_color_range(outpicref, AVCOL_RANGE_JPEG);
}
if ((s->orientation == VERTICAL && s->xpos >= s->w) ||