[FFmpeg-cvslog] avfilter/showcqt: set some frame properties
Muhammad Faiz
git at videolan.org
Fri Jun 24 10:38:48 CEST 2016
ffmpeg | branch: master | Muhammad Faiz <mfcc64 at gmail.com> | Fri Jun 24 15:06:39 2016 +0700| [1b7eaead0cd41b75477390c3660778fb9758e9fc] | committer: Muhammad Faiz
avfilter/showcqt: set some frame properties
Signed-off-by: Muhammad Faiz <mfcc64 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1b7eaead0cd41b75477390c3660778fb9758e9fc
---
libavfilter/avf_showcqt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c
index 8863ea1..16bb2be 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) {
More information about the ffmpeg-cvslog
mailing list