[Ffmpeg-devel] Re : [BUG] in new ff_find_start_code

Michael Niedermayer michaelni
Mon Feb 6 12:23:00 CET 2006


Hi

On Sun, Feb 05, 2006 at 08:30:04PM +0100, Andreas Brachold wrote:
> Hi,
> 
> same here,
> 
> since last cvs-changes at libavcodec/mpegvideo.c (revision 1.507) hang
> it on ff_find_start_code hang on endless loop, and its run with 100% CPU
> load..., before work it fine.
> 
> At Backtrace it looks like counter(p) bigger then buffer end... 
> 
> it's could also reproduce with ffmpeg and a GOP from a dvb mpeg2
> stream :
> 
> $ ffmpeg -i sample.mpv -o test%2d.jpg
> 
> 
> (gdb) bt
> #0  ff_find_start_code (p=0x8425ef0 "", end=0x8416980 "",
> state=0x8425ef0) at mpegvideo.c:234
> #1  0x0816b55f in ff_mpeg1_find_frame_end (pc=0x8416980, buf=0x8425ef0
> "", buf_size=1024) at mpeg12.c:2977
> #2  0x0817e43a in mpegvideo_parse (s=0x8425e10, avctx=0x8425ef0,
> poutbuf=0xbffff288, poutbuf_size=0x8425e10, buf=0x8425ac0 "??8\b",
> buf_size=-1073745272) at parser.c:416
> #3  0x0817debd in av_parser_parse (s=0x8425e10, avctx=0x84168d0,
> poutbuf=0x400, poutbuf_size=0x1, buf=0x8425ef0 "", buf_size=134564281,
> pts=-9223372036854775808, dts=-4611700827336058176) at parser.c:106
> #4  0x080549b9 in av_read_frame_internal (s=0x400, pkt=0xbffff278) at
> utils.c:891
> #5  0x080564b3 in av_find_stream_info (ic=0xbffff40c) at utils.c:1920
> 
> 
> sample file(128k) : http://deltab.de/vdr/sample.mpv

fixed

[...]
-- 
Michael





More information about the ffmpeg-devel mailing list