mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/vf_mergeplanes: Avoid using non public AV_PIX_FMT_NB
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c0f8801e47
commit
1dbc98461b
@ -120,7 +120,7 @@ static int query_formats(AVFilterContext *ctx)
|
||||
int i;
|
||||
|
||||
s->outdesc = av_pix_fmt_desc_get(s->out_fmt);
|
||||
for (i = 0; i < AV_PIX_FMT_NB; i++) {
|
||||
for (i = 0; av_pix_fmt_desc_get(i); i++) {
|
||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(i);
|
||||
if (desc->comp[0].depth_minus1 == s->outdesc->comp[0].depth_minus1 &&
|
||||
av_pix_fmt_count_planes(i) == desc->nb_components)
|
||||
|
Loading…
x
Reference in New Issue
Block a user