Skip to content

Commit 880a55b

Browse files
committed
Fix build on FFmpeg version < 7
1 parent 4add774 commit 880a55b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/modules/avformat/filter_avfilter.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ typedef struct
5757
mlt_colorspace colorspace;
5858
int full_range;
5959
int reset;
60+
#if HAVE_FFMPEG_CH_LAYOUT
6061
AVChannelLayout ch_layout;
62+
#endif
6163
} private_data;
6264

6365
#if LIBAVUTIL_VERSION_INT >= ((56 << 16) + (35 << 8) + 101)

src/modules/avformat/link_avfilter.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ typedef struct
6161
int reset;
6262
mlt_position expected_frame;
6363
mlt_position continuity_frame;
64+
#if HAVE_FFMPEG_CH_LAYOUT
6465
AVChannelLayout ch_layout;
66+
#endif
6567
} private_data;
6668

6769
#if LIBAVUTIL_VERSION_INT >= ((56 << 16) + (35 << 8) + 101)

0 commit comments

Comments
 (0)