X-Git-Url: https://cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fthirdparty%2Fsrc%2Fffmpeg-4.2.patch4;fp=cinelerra-5.1%2Fthirdparty%2Fsrc%2Fffmpeg-4.2.patch4;h=87a2d41bf64a585b2ab88416775d7ce368ebe01b;hb=8e67d840c5a93f77de021102a4f0bfc4e07504f4;hp=0000000000000000000000000000000000000000;hpb=b350aa5a1ccbadcb5f794183c443c0738cd1e9ab;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/thirdparty/src/ffmpeg-4.2.patch4 b/cinelerra-5.1/thirdparty/src/ffmpeg-4.2.patch4 new file mode 100644 index 00000000..87a2d41b --- /dev/null +++ b/cinelerra-5.1/thirdparty/src/ffmpeg-4.2.patch4 @@ -0,0 +1,28 @@ +diff -ru a/libavfilter/af_aformat.c b/libavfilter/af_aformat.c +--- a/libavfilter/af_aformat.c 2018-07-17 03:27:41.000000000 -0600 ++++ b/libavfilter/af_aformat.c 2019-08-08 18:20:22.150540943 -0600 +@@ -109,6 +109,16 @@ + return 0; + } + ++#define DEL_FIELD(p,mem,fld) if( p->mem ) { av_freep(&p->mem->fld); av_freep(&p->mem); } ++ ++static av_cold void uninit(AVFilterContext *ctx) ++{ ++ AFormatContext *s = ctx->priv; ++ DEL_FIELD(s, formats, formats); ++ DEL_FIELD(s, sample_rates, formats); ++ DEL_FIELD(s, channel_layouts, channel_layouts); ++} ++ + static int query_formats(AVFilterContext *ctx) + { + AFormatContext *s = ctx->priv; +@@ -146,6 +156,7 @@ + .name = "aformat", + .description = NULL_IF_CONFIG_SMALL("Convert the input audio to one of the specified formats."), + .init = init, ++ .uninit = uninit, + .query_formats = query_formats, + .priv_size = sizeof(AFormatContext), + .priv_class = &aformat_class,