mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avfilter/vf_waveform: only use available components
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
e0f5f9267a
commit
f3c00be2a3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user