[Ffmpeg-devel] VP3 decoding issue

Alexander Strasser eclipse7
Mon Oct 31 19:56:51 CET 2005


Hi,

Derk-Jan Hartman wrote:
> OK, this cannot be the expected behaviour :D
> Without -v 9 it doesn't crash btw.
> 
> ./ffmpeg -v 9 -i /Volumes/Genitus/pjotr/Movies/in/VP3-Artifact.mov  
> hoi.avi
> ffmpeg version CVS, build 3277056, Copyright (c) 2000-2004 Fabrice  
> Bellard
>   configuration:  --prefix=/Volumes/Genitus/pjotr/Development/vlc/ 
> extras/contrib --extra-cflags=-I/Volumes/Genitus/pjotr/Development/ 
> vlc/extras/contrib/include  -no-cpp-precomp -DRUNTIME_CPUDETECT -- 
> extra-ldflags=-L/Volumes/Genitus/pjotr/Development/vlc/extras/contrib/ 
> lib  --enable-gpl --enable-mp3lame --enable-faac --enable-pp -- 
> disable-vhook --disable-audio-beos --disable-ffserver --enable- 
> mp3lame --enable-a52 --disable-ffplay
>   built on Oct 25 2005 03:37:08, gcc: 4.0.0 (Apple Computer, Inc.  
> build 5026)
[some more output]
> [vp3 @ 0x298968]VP version: 1
> 0 dezicycles in , 2307876 runs, 1 skips
> 0 dezicycles in /?, 2307980 runs, 1 skips
> 0 dezicycles in /?, 2308136 runs, 1 skips
> Bus error
> 
> Thread 0 Crashed:
> 0   libSystem.B.dylib     0x900031e8 strlen + 8
> 1   libSystem.B.dylib     0x9000cd5c __vfprintf$LDBL128 + 5548
> 2   libSystem.B.dylib     0x9000b8a8 __vfprintf$LDBL128 + 248
> 3   libSystem.B.dylib     0x9006aad8 vfprintf$LDBL128 + 112
> 4   ffmpeg                0x00055b08 av_log + 60

  Does the attached patch fix the crash?
It would also fix the timing macros for some more platforms
(mingw and cygwin) but i don't know if it breaks some others
too.

  Alex (beastd)
-------------- next part --------------
Index: libavutil/common.h
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavutil/common.h,v
retrieving revision 1.153
diff -u -r1.153 common.h
--- libavutil/common.h	19 Sep 2005 23:26:47 -0000	1.153
+++ libavutil/common.h	31 Oct 2005 17:31:22 -0000
@@ -512,7 +512,7 @@
   }else\
       tskip_count++;\
   if(256*256*256*64%(tcount+tskip_count)==0){\
-      av_log(NULL, AV_LOG_DEBUG, "%Ld dezicycles in %s, %d runs, %d skips\n", tsum*10/tcount, id, tcount, tskip_count);\
+      av_log(NULL, AV_LOG_DEBUG, "%"PRIu64" dezicycles in %s, %d runs, %d skips\n", tsum*10/tcount, id, tcount, tskip_count);\
   }\
 }
 #else



More information about the ffmpeg-devel mailing list