From 1b7eaead0cd41b75477390c3660778fb9758e9fc Mon Sep 17 00:00:00 2001 From: Muhammad Faiz Date: Fri, 24 Jun 2016 15:06:39 +0700 Subject: [PATCH] avfilter/showcqt: set some frame properties Signed-off-by: Muhammad Faiz --- libavfilter/avf_showcqt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c index 8863ea152e..16bb2be8d7 100644 --- a/libavfilter/avf_showcqt.c +++ b/libavfilter/avf_showcqt.c @@ -1073,6 +1073,8 @@ static int plot_cqt(AVFilterContext *ctx, AVFrame **frameout) AVFrame *out = *frameout = ff_get_video_buffer(outlink, outlink->w, outlink->h); if (!out) return AVERROR(ENOMEM); + out->sample_aspect_ratio = av_make_q(1, 1); + av_frame_set_color_range(out, AVCOL_RANGE_MPEG); UPDATE_TIME(s->alloc_time); if (s->bar_h) {