Credit Terje with 2 new render formats + reverse titler and blur MAX_FLT causing...
[goodguy/cinelerra.git] / cinelerra-5.1 / thirdparty / src / ffmpeg.git.patch4
index 08bdcf2426808e04f00b3237da09ff6f183b1004..b054f7a134efb47502363e21b1e891bc0d7b9799 100644 (file)
@@ -1,28 +1,10 @@
-diff -urN a/libavfilter/af_aformat.c b/libavfilter/af_aformat.c
---- a/libavfilter/af_aformat.c 2019-12-02 08:48:03.060361273 -0700
-+++ b/libavfilter/af_aformat.c 2019-12-02 08:52:25.619248884 -0700
-@@ -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,
+--- a/libavformat/avidec.c     2025-05-09 13:35:07.851155737 -0600
++++ b/libavformat/avidec.c     2025-05-09 13:34:45.702821357 -0600
+@@ -2021,6 +2021,7 @@
+     .p.name         = "avi",
+     .p.long_name    = NULL_IF_CONFIG_SMALL("AVI (Audio Video Interleaved)"),
+     .p.extensions   = "avi",
++    .p.flags        = AVFMT_SEEK_NOSTREAMS,
+     .p.priv_class   = &demuxer_class,
+     .priv_data_size = sizeof(AVIContext),
+     .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,