diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2015-05-09 20:55:48 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2015-05-10 08:47:53 +0200 |
commit | 5af621278d458894d20f679194aa028a6f08f65b (patch) | |
tree | 407e01b9481f13192c4bfcd1f3e24584e38a5002 /libavformat/options.c | |
parent | 58201c6e9eec306c7fe4cc0846fb8501f1157eac (diff) | |
download | ffmpeg-5af621278d458894d20f679194aa028a6f08f65b.tar.gz |
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@gmx.de>
Diffstat (limited to 'libavformat/options.c')
-rw-r--r-- | libavformat/options.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/options.c b/libavformat/options.c index 4b08f3f199..d238dd5ab7 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; } |