[FFmpeg-devel] [PATCH] avformat_alloc_context: initialize raw_packet_buffer_remaining_size.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat May 9 20:57:26 CEST 2015


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>
---
 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;
 }
-- 
2.1.4



More information about the ffmpeg-devel mailing list