[Ffmpeg-devel] segfault in ff_mpeg1_find_frame_end()

Stefan Lucke stefan
Tue May 10 23:16:27 CEST 2005


On Montag, 9. Mai 2005 22:50, Stefan Lucke wrote:
> On Donnerstag, 14. April 2005 10:13, Stefan Lucke wrote:
> 
> > 
> > In between I had a look at ff_combine_frame() of file parser.c which does a
> > av_fast_realloc() with FF_INPUT_BUFFER_PADDING_SIZE additional bytes. But
> > these additional bytes are not zeroed as comment in avcodec.h claims.
> > I'll have to check if that might cause my segfaults.
> 
> Things are getting more complicated. For my first sample stream
> which crashed upon 16:9 -> 4:3 change I've a fix for parser.c:

Don't know why gdb tells me segfault ..find_frame_end(). Added
some av_log() in mpeg12.c:

The first output is with change from revision 1.228 reverted
(attached a diff with my trace messages).

[mpeg2video @ 0x40622008]120 at 6268 left 1308
[mpeg2video @ 0x40622008]121 at 6368 left 1208
[mpeg2video @ 0x40622008]122 at 6624 left 952
[mpeg2video @ 0x40622008]123 at 6796 left 780
[mpeg2video @ 0x40622008]124 at 7052 left 524
[mpeg2video @ 0x40622008] ++ buf_size = 134629
[mpeg2video @ 0x40622008]1B7 at 4 left 134625
[mpeg2video @ 0x40622008]1B3 at 32 left 134597
[mpeg2video @ 0x40622008]1B5 at 108 left 134521
[mpeg2video @ 0x40622008]1B2 at 118 left 134511
[mpeg2video @ 0x40622008]1B8 at 128 left 134501
[mpeg2video @ 0x40622008]100 at 136 left 134493
[mpeg2video @ 0x40622008] -- postinit 1 --
[mpeg2video @ 0x40622008] -- postinit 1a --
[mpeg2video @ 0x40622008] -- postinit 1aa --
[mpeg2video @ 0x40622008] -- postinit 1ab --
[mpeg2video @ 0x40622008] -- postinit 2 --
[mpeg2video @ 0x40622008] -- postinit 3 --
[mpeg2video @ 0x40622008]1B5 at 144 left 134485
[mpeg2video @ 0x40622008]101 at 153 left 134476
[mpeg2video @ 0x40622008]102 at 10221 left 124408


[mpeg2video @ 0x40622008]120 at 6268 left 1308
[mpeg2video @ 0x40622008]121 at 6368 left 1208
[mpeg2video @ 0x40622008]122 at 6624 left 952
[mpeg2video @ 0x40622008]123 at 6796 left 780
[mpeg2video @ 0x40622008]124 at 7052 left 524
[mpeg2video @ 0x40622008] ++ buf_size = 134629
[mpeg2video @ 0x40622008]1B7 at 4 left 134625
[mpeg2video @ 0x40622008]1B3 at 32 left 134597
[mpeg2video @ 0x40622008]1B5 at 108 left 134521
[mpeg2video @ 0x40622008]1B2 at 118 left 134511
[mpeg2video @ 0x40622008]1B8 at 128 left 134501
[mpeg2video @ 0x40622008]100 at 136 left 134493
[mpeg2video @ 0x40622008] -- postinit 1 --
[mpeg2video @ 0x40622008] -- postinit 1a --
Speicherzugriffsfehler


-- 
Stefan Lucke
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpeg_trace.diff
Type: text/x-diff
Size: 2419 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20050510/254db45c/attachment.diff>



More information about the ffmpeg-devel mailing list