[Ffmpeg-cvslog] r5547 - trunk/libavformat/utils.c
mru
subversion
Thu Jun 29 21:42:34 CEST 2006
Author: mru
Date: Thu Jun 29 21:42:34 2006
New Revision: 5547
Modified:
trunk/libavformat/utils.c
Log:
extradata may be used as bitstream reader input so allocate with padding
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c (original)
+++ trunk/libavformat/utils.c Thu Jun 29 21:42:34 2006
@@ -1995,8 +1995,9 @@
int i= st->parser->parser->split(st->codec, pkt->data, pkt->size);
if(i){
st->codec->extradata_size= i;
- st->codec->extradata= av_malloc(st->codec->extradata_size);
+ st->codec->extradata= av_malloc(st->codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
memcpy(st->codec->extradata, pkt->data, st->codec->extradata_size);
+ memset(st->codec->extradata + i, 0, FF_INPUT_BUFFER_PADDING_SIZE);
}
}
More information about the ffmpeg-cvslog
mailing list