Browse Source

avfilter/showcqt: set some frame properties

Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
tags/n3.1
Muhammad Faiz 9 years ago
parent
commit
1b7eaead0c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavfilter/avf_showcqt.c

+ 2
- 0
libavfilter/avf_showcqt.c View File

@@ -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) {


Loading…
Cancel
Save