[Ffmpeg-devel] Possible problem with recent changes in extradata handling
Michael Niedermayer
michaelni
Wed Jun 29 10:49:26 CEST 2005
Hi
On Wednesday 29 June 2005 09:58, Luca Abeni wrote:
> Hi all,
>
> this morning, after a cvs update I had a crash when trying to decode an
> MPEG TS coming from satellite (it was euronews from hotbird).
>
> The problem seems to be around line 1900 in libavformat/utils.c:
> if(st->parser && st->parser->parser->split && !st->codec.extradata){
> 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);
> memcpy(st->codec.extradata, pkt->data, st->codec.extradata_size);
> }
> }
> (this code has been recently added, if I am not mistaken).
>
> Now, when parsing the video stream (mpeg2 video),
> st->parser->parser->split() returns -1, so an av_malloc(-1) is performed
fixed
[...]
--
Michael
More information about the ffmpeg-devel
mailing list