[FFmpeg-devel] bug in avoi.c, repost from ffmpeg-user at mplayerhq.hu

Erik Van Grunderbeeck erik
Thu Feb 5 16:49:31 CET 2009


I think there's a file seek bug in libavformat\avio.c

 

Line 94

 

        if(!uc->is_streamed && url_seek(uc, 0, SEEK_SET) < 0)

 

should read

 

        if(!uc->is_streamed && up->url_seek(uc, 0, SEEK_SET) < 0)

 

 

Not seeking on correct protocol will use the general seek, and thus the file
handle is invalid. A windows debug build will assert there.

 

 

Regards

 

 

 

Erik

 





More information about the ffmpeg-devel mailing list