[FFmpeg-devel] [PATCH] raw_read_header fix

Måns Rullgård mans
Sat Jul 14 01:29:19 CEST 2007

Alex Beregszaszi <alex at rtfs.hu> writes:

> Hi,
>> raw_read_header will return even when no parameters are specified, thus
>> the stream will be 0khz, 0channels or 0x0 in width.
>> This returns an error.
>> Maybe avcodec_check_dimensions() should be used?
> Sorry, I see this is broken as avformat will use try_decode_frame in
> that case. Anyway I get crashes in seek_test when it opens ulaw or alaw
> raw files.

I've seen those too.  The reason the main ffmpeg program doesn't crash
is that it sets a default sample rate of 44.1 kHz before opening the
input file.

I'm not sure what the best solution to this is.

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list