ffmpeg | branch: master | Paul B Mahol <one...@gmail.com> | Sat Mar 5 20:22:35 2016 +0100| [f3c00be2a3ddc38c1851e0cd42de754a54d6af69] | committer: Paul B Mahol
avfilter/vf_waveform: only use available components Signed-off-by: Paul B Mahol <one...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f3c00be2a3ddc38c1851e0cd42de754a54d6af69 --- libavfilter/vf_waveform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_waveform.c b/libavfilter/vf_waveform.c index fa78264..a84e3f2 100644 --- a/libavfilter/vf_waveform.c +++ b/libavfilter/vf_waveform.c @@ -1158,7 +1158,7 @@ static int config_output(AVFilterLink *outlink) if (!s->peak) return AVERROR(ENOMEM); - for (p = 0; p < 4; p++) { + for (p = 0; p < s->ncomp; p++) { const int is_chroma = (p == 1 || p == 2); const int shift_w = (is_chroma ? s->desc->log2_chroma_w : 0); const int shift_h = (is_chroma ? s->desc->log2_chroma_h : 0); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog