summaryrefslogtreecommitdiff
path: root/libavfilter/avf_showcqt.c
diff options
context:
space:
mode:
authorMuhammad Faiz <mfcc64@gmail.com>2016-06-24 15:06:39 +0700
committerMuhammad Faiz <mfcc64@gmail.com>2016-06-24 15:33:16 +0700
commit1b7eaead0cd41b75477390c3660778fb9758e9fc (patch)
tree118bb68d46a0695916ccaf69633bf76bb3f6f54f /libavfilter/avf_showcqt.c
parent6935aaa7484199a27fefe522669fd2593dee1397 (diff)
avfilter/showcqt: set some frame properties
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libavfilter/avf_showcqt.c')
-rw-r--r--libavfilter/avf_showcqt.c2
1 files changed, 2 insertions, 0 deletions
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) {