[gegl] ff-save: increase max output packet size from 200kb to 1mb



commit 17db45f429f77cd53b83a16fb8502761e1066629
Author: Øyvind Kolås <pippin gimp org>
Date:   Sun Apr 10 15:10:42 2016 +0200

    ff-save: increase max output packet size from 200kb to 1mb

 operations/external/ff-save.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/operations/external/ff-save.c b/operations/external/ff-save.c
index 782ea84..0ef726f 100644
--- a/operations/external/ff-save.c
+++ b/operations/external/ff-save.c
@@ -686,9 +686,8 @@ open_video (GeglProperties *o, AVFormatContext * oc, AVStream * st)
   p->video_outbuf = NULL;
   if (!(oc->oformat->flags & AVFMT_RAWPICTURE))
     {
-      /* allocate output buffer */
-      /* XXX: API change will be done */
-      p->video_outbuf_size = 200000;
+      /* allocate output buffer, 1 mb / frame, might fail for some codecs on UHD - but works for now */
+      p->video_outbuf_size = 1024 * 1024;
       p->video_outbuf = malloc (p->video_outbuf_size);
     }
 
@@ -726,7 +725,7 @@ close_video (Priv * p, AVFormatContext * oc, AVStream * st)
       av_free (p->tmp_picture->data[0]);
       av_free (p->tmp_picture);
     }
-  av_free (p->video_outbuf);
+  free (p->video_outbuf);
 }
 
 #include "string.h"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]