mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
avfilter/vf_swapuv: Avoid using non public AV_PIX_FMT_NB
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
cfa0ad6eec
commit
e10ac3a12e
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ static int query_formats(AVFilterContext *ctx)
|
|||
AVFilterFormats *formats = NULL;
|
||||
int fmt;
|
||||
|
||||
for (fmt = 0; fmt < AV_PIX_FMT_NB; fmt++) {
|
||||
for (fmt = 0; av_pix_fmt_desc_get(fmt); fmt++) {
|
||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt);
|
||||
if (is_planar_yuv(desc))
|
||||
ff_add_format(&formats, fmt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue