Opened 12 years ago
Closed 12 years ago
#2755 closed defect (fixed)
avformat_find_stream_info crashes float register
Reported by: | hxuanyu | Owned by: | |
---|---|---|---|
Priority: | important | Component: | undetermined |
Version: | unspecified | Keywords: | regression |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
This issue is only reproduce-able on Mac version, it's reproduce-able on 1.2.x, 1.1.x and 1.0.x branches. it works fine on 0.11.x branches.
We found this issue in our own app which uses ffmpeg libraries.
after avformat_find_stream_info is called, long double calculation get some wired result.
We used 'info float' in gdb and found that float register are filled with weird value after avformat_find_stream_info is called. I'll attach dbg screen shot for you.
I also wrote a code fragment and put it into main of ffmpeg.c,
and the executable build on Mac can reproduce the issue.
testers said it happens every time when input video format is MPEG4
the configuration used to build on Mac is : --enable-cross-compile --arch=i386 --target-os=darwin --cc=gcc-4.0 --extra-cflags='-arch i386 -mmacosx-version-min=10.2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --extra-ldflags='-arch i386 -mmacosx-version-min=10.2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' \ --disable-mmx
the tested video will be attached, you can test it on 1.1.5 or 1.2.1 branches
Attachments (3)
Change History (7)
by , 12 years ago
by , 12 years ago
by , 12 years ago
Attachment: | sample-3gp-h263-amr.3gp added |
---|
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Component: | avcodec → undetermined |
---|
Please test current git head and if you think this is a regression, please use git bisect to find the commit introducing the problem.
comment:3 by , 12 years ago
Keywords: | regression added |
---|---|
Priority: | normal → important |
comment:4 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in 707b2135fda3687a6eeb91411f801e437f633f30
PS: --disable-mmx is a VERY bad idea
The code I used to put into main function of ffmpeg.c is
and the output from Mac was
the output from Windows was
notice that some values in Mac became nan