filters/f_lavfi: handle removed AV_OPT_TYPE_CHANNEL_LAYOUT

See: 65ddc74988
This commit is contained in:
Dudemanguy 2024-03-07 14:12:15 -06:00
parent 62b1bad755
commit 78447c4b91
1 changed files with 4 additions and 0 deletions

View File

@ -1034,7 +1034,11 @@ static const char *get_avopt_type_name(enum AVOptionType type)
case AV_OPT_TYPE_VIDEO_RATE: return "fps";
case AV_OPT_TYPE_DURATION: return "duration";
case AV_OPT_TYPE_COLOR: return "color";
#if LIBAVUTIL_VERSION_MAJOR < 59
case AV_OPT_TYPE_CHANNEL_LAYOUT: return "channellayout";
#else
case AV_OPT_TYPE_CHLAYOUT: return "channellayout";
#endif
case AV_OPT_TYPE_BOOL: return "bool";
case AV_OPT_TYPE_CONST: // fallthrough
default: