[FFmpeg-devel] [PATCHv5 1/3] ogg: allow streams to update metadata
Ben Boeckel
mathstuf at gmail.com
Sun Jan 19 02:33:25 CET 2014
On Mon, 13 Jan, 2014 at 06:52:11 GMT, Clément Bœsch wrote:
>> @@ -245,11 +249,13 @@ static int ogg_new_stream(AVFormatContext *s, uint3=
> 2_t serial)
>> ogg->streams = os;
>> os = ogg->streams + idx;
>> memset(os, 0, sizeof(*os));
>> - os->serial = serial;
>> - os->bufsize = DECODER_BUFFER_SIZE;
>> - os->buf = av_malloc(os->bufsize + FF_INPUT_BUFFER_PADDING_SIZE);
>> - os->header = -1;
>> - os->start_granule = OGG_NOGRANULE_VALUE;
>> + os->serial = serial;
>> + os->bufsize = DECODER_BUFFER_SIZE;
>> + os->buf = av_malloc(os->bufsize + FF_INPUT_BUFFER_PADDING_SIZE);
>> + os->header = -1;
>> + os->start_granule = OGG_NOGRANULE_VALUE;
>> + os->new_metadata = NULL;
>> + os->new_metadata_size = 0;
>
> This chunk is not needed, it's handled my the memset above
Done.
--Ben
More information about the ffmpeg-devel
mailing list