diff options
author | Muhammad Faiz <mfcc64@gmail.com> | 2017-04-22 15:57:18 +0700 |
---|---|---|
committer | Muhammad Faiz <mfcc64@gmail.com> | 2017-04-23 14:40:30 +0700 |
commit | 6af050d7d0c3c73f3d62115152db82ebd2dc5d57 (patch) | |
tree | d1c7b6d4711dc095cab3f135f5c6433b4474364a /libavfilter/avf_showcqt.c | |
parent | 8103c595223613c08e44bcf56ae7098d3c31be8b (diff) | |
download | ffmpeg-6af050d7d0c3c73f3d62115152db82ebd2dc5d57.tar.gz |
avfilter: do not use AVFrame accessor
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libavfilter/avf_showcqt.c')
-rw-r--r-- | libavfilter/avf_showcqt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c index 7bc3a260c3..875ba48cee 100644 --- a/libavfilter/avf_showcqt.c +++ b/libavfilter/avf_showcqt.c @@ -1169,8 +1169,8 @@ static int plot_cqt(AVFilterContext *ctx, AVFrame **frameout) if (!out) return AVERROR(ENOMEM); out->sample_aspect_ratio = av_make_q(1, 1); - av_frame_set_color_range(out, AVCOL_RANGE_MPEG); - av_frame_set_colorspace(out, s->csp); + out->color_range = AVCOL_RANGE_MPEG; + out->colorspace = s->csp; UPDATE_TIME(s->alloc_time); if (s->bar_h) { |