Skip to content

Commit

Permalink
avfilter/showcqt: set some frame properties
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
  • Loading branch information
mfcc64 committed Jun 24, 2016
1 parent 6935aaa commit 1b7eaea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libavfilter/avf_showcqt.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 1b7eaea

Please sign in to comment.