[FFmpeg-cvslog] avformat_alloc_context: initialize raw_packet_buffer_remaining_size.

Reimar Döffinger git at videolan.org
Sun May 10 08:48:42 CEST 2015


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sat May  9 20:55:48 2015 +0200| [5af621278d458894d20f679194aa028a6f08f65b] | committer: Reimar Döffinger

avformat_alloc_context: initialize raw_packet_buffer_remaining_size.

This currently works for most users because
avformat_open_input sets it, but this patch fixes any
applications not using that function.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5af621278d458894d20f679194aa028a6f08f65b
---

 libavformat/options.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/options.c b/libavformat/options.c
index 4b08f3f..d238dd5 100644
--- a/libavformat/options.c
+++ b/libavformat/options.c
@@ -117,6 +117,7 @@ AVFormatContext *avformat_alloc_context(void)
         return NULL;
     }
     ic->internal->offset = AV_NOPTS_VALUE;
+    ic->internal->raw_packet_buffer_remaining_size = RAW_PACKET_BUFFER_SIZE;
 
     return ic;
 }



More information about the ffmpeg-cvslog mailing list