[Ffmpeg-devel] [PATCH] Fix for the lol-ffplay.ogm testcase

Måns Rullgård mru
Wed Jan 17 11:09:31 CET 2007


Panagiotis Issaris said:
> Hi,
>
> On Wed, 2007-01-17 at 10:40 +0100, Panagiotis Issaris wrote:
>> Hi,
>>
>> Attached are two trivial patches with different approaches to prevent
>> the segfault as demonstrated by lol-ffplay.ogm.
>
> And I just noted they also prevent the segfault triggered by:
>
> takis at issaris:/usr/local/src/ffmpeg$ ./ffmpeg -i
> lol-ffplay.ogg /tmp/test.mpg
> FFmpeg version SVN-r7559, Copyright (c) 2000-2006 Fabrice Bellard, et al.
>   configuration:  --enable-gpl --enable-mp3lame --enable-faac --enable-x11grab
>   libavutil version: 49.1.0
>   libavcodec version: 51.28.0
>   libavformat version: 51.7.0
>   built on Jan 17 2007 10:41:27, gcc: 4.1.2 20060928 (prerelease) (Ubuntu
4.1.1-13ubuntu5)
> [ogg @ 0x8444654]10 bytes of comment header remain
> [ogg @ 0x8444654]truncated comment header, 1 comments not found
> [ogg @ 0x8444654]Could not find codec parameters (Video: 0x0000)
> [ogg @ 0x8444654]Could not find codec parameters (Video: 0x0000)
>
> Seems stream 2 codec frame rate differs from container frame rate: inf (1/0) ->
1000000.00 (1000000/1)
> Input #0, ogg, from 'lol-ffplay.ogg':
>   Duration: 00:00:00.2, start: 0.000000, bitrate: 548 kb/s
>   Stream #0.0: Audio: vorbis, 22050 Hz, mono, 548 kb/s
>   Stream #0.1: Video: 0x0000, 1000000.00 fps(r)
>   Stream #0.2: Video: 0x0000, 1000000.00 fps(r)
> picture size invalid (0x0)
> Segmentation fault (core dumped)

What platform are you on?  I don't get any crashes from that file, or the ogm
file on x86_64 (after fixing ogg2.c).

-- 
M?ns Rullg?rd
mru at inprovide.com




More information about the ffmpeg-devel mailing list