On 2/18/2009 3:20 PM, Fred Eisele wrote: > Fred Eisele <[email protected]> added the comment: > > I got a build with > ./configure --enable-debug --enable-libfaac --enable-libmp3lame > --disable-optimizations > I had to compile libavcodec/x86/dsputil_mmx.c without disabling-optimizations > because... > libavcodec/x86/dsputil_mmx.c:681: error: can't find a register in class > ‘GENERAL_REGS’ while reloading ‘asm’ > Shouldn't there be a C version of this function for debugging? > Anyway. > > (gdb) bt > #0 file_seek (h=0xa590090, pos=0, whence=65536) at libavformat/file.c:75 > #1 0x080771b8 in url_seek (h=0xa590090, pos=0, whence=65536) at > libavformat/avio.c:170 > #2 0x08077b34 in url_fsize (s=0xa5900d0) at libavformat/aviobuf.c:201 > #3 0x08092e3d in ffm_read_packet (s=0xa59f0d0, pkt=0xbf8d9a6c) at > libavformat/ffmdec.c:365 > #4 0x0806e20f in av_read_packet (s=0xa59f0d0, pkt=0xbf8d9a6c) at > libavformat/utils.c:591 > #5 0x0806f805 in av_read_frame_internal (s=0xa59f0d0, pkt=0xbf8d9e24) at > libavformat/utils.c:972 > #6 0x08072fff in av_find_stream_info (ic=0xa59f0d0) at > libavformat/utils.c:2049 > #7 0x080601dd in open_input_stream (c=0xa59be30, info=0xbf8db27c "") at > ffserver.c:1987 > #8 0x0805efcd in http_parse_request (c=0xa59be30) at ffserver.c:1585 > #9 0x0805d601 in handle_connection (c=0xa59be30) at ffserver.c:870 > #10 0x0805cee3 in http_server () at ffserver.c:665 > #11 0x080674a4 in main (argc=Cannot access memory at address 0x3f4d2ee5 > ) at ffserver.c:4557 > > In any case you can see the 'whence' value is incorrect, 65536. > Is there any other information I can harvest that will help?
This value is AVSEEK_SIZE used by some protocols like http to know that file size is requested. It should fail in the file case (lseek and file_seek should return error), and then correct seek function will be invoked with SEEK_END. -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA checking for life_signs in -lkenny... no FFmpeg maintainer http://www.ffmpeg.org
