Skip to content

Commit 78447c4

Browse files
committed
filters/f_lavfi: handle removed AV_OPT_TYPE_CHANNEL_LAYOUT
See: FFmpeg/FFmpeg@65ddc74
1 parent 62b1bad commit 78447c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

filters/f_lavfi.c

+4
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,11 @@ static const char *get_avopt_type_name(enum AVOptionType type)
10341034
case AV_OPT_TYPE_VIDEO_RATE: return "fps";
10351035
case AV_OPT_TYPE_DURATION: return "duration";
10361036
case AV_OPT_TYPE_COLOR: return "color";
1037+
#if LIBAVUTIL_VERSION_MAJOR < 59
10371038
case AV_OPT_TYPE_CHANNEL_LAYOUT: return "channellayout";
1039+
#else
1040+
case AV_OPT_TYPE_CHLAYOUT: return "channellayout";
1041+
#endif
10381042
case AV_OPT_TYPE_BOOL: return "bool";
10391043
case AV_OPT_TYPE_CONST: // fallthrough
10401044
default:

0 commit comments

Comments
 (0)