[FFmpeg-devel] [PATCH] make packet_size in AVFormatContext unsigned

Ronald S. Bultje rsbultje
Tue Jun 9 23:32:08 CEST 2009


On Tue, Jun 9, 2009 at 5:15 PM, Ronald S. Bultje<rsbultje at gmail.com> wrote:
> This will be fun. I think mpegenc.c might have some issues with this
> patch, but the best way to "workaround" these is probably not to add
> more unsigneds, but rather to set a max. value for the packetsize in
> the init() function. Then again, I have no idea what the value of this
> limit would be.

Same patch, now with correct content-type.

-------------- next part --------------
Index: ffmpeg-svn/libavformat/avformat.h
--- ffmpeg-svn.orig/libavformat/avformat.h	2009-06-09 16:44:40.000000000 -0400
+++ ffmpeg-svn/libavformat/avformat.h	2009-06-09 17:00:53.000000000 -0400
@@ -553,7 +553,7 @@
     int index_built;
     int mux_rate;
-    int packet_size;
+    unsigned int packet_size;
     int preload;
     int max_delay;

More information about the ffmpeg-devel mailing list