[Ffmpeg-devel] Problem in av_find_stream_info()

陆然 hephooey
Sun Jul 30 17:00:20 CEST 2006


Hi,

I think there is a bug in av_find_stream_info(), when processing a file with 
AVFMTCTX_NOHEADER flag, typically FLV files, the function will trying to read 
the entire file into the memory since the only way to get out of the loop is 
an EOF or AVERROR_NOMEM. MAX_READ_SIZE has no effect when all the stream info 
exist with an AVFMTCTX_NOHEADER flag. This behavior was introduced in 2494.

BTW, since FLV only have one video stream and one audio stream, could 
something like AVFMTCTX_FLVHEADER be introduce to make the 
av_find_stream_info() return when two stream has been found, So the playback 
can start instantly?

-- 
Best Regards,
LR




More information about the ffmpeg-devel mailing list