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>
This commit is contained in:
Reimar Döffinger 2015-05-09 20:55:48 +02:00
parent 58201c6e9e
commit 5af621278d
1 changed files with 1 additions and 0 deletions

View File

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