Skip to content

Commit 342e79f

Browse files
committed
Fix build on FFmpeg version < 7
1 parent 880a55b commit 342e79f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/modules/avformat/filter_avfilter.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,9 @@ static void filter_close(mlt_filter filter)
10611061
avfilter_graph_free(&pdata->avfilter_graph);
10621062
av_frame_free(&pdata->avinframe);
10631063
av_frame_free(&pdata->avoutframe);
1064+
#if HAVE_FFMPEG_CH_LAYOUT
10641065
av_channel_layout_uninit(&pdata->ch_layout);
1066+
#endif
10651067
free(pdata);
10661068
}
10671069
filter->child = NULL;

src/modules/avformat/link_avfilter.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,9 @@ static void link_close(mlt_link self)
11691169
avfilter_graph_free(&pdata->avfilter_graph);
11701170
av_frame_free(&pdata->avinframe);
11711171
av_frame_free(&pdata->avoutframe);
1172+
#if HAVE_FFMPEG_CH_LAYOUT
11721173
av_channel_layout_uninit(&pdata->ch_layout);
1174+
#endif
11731175
free(pdata);
11741176
}
11751177
self->close = NULL;

0 commit comments

Comments
 (0)