Changeset 1022
- Timestamp:
- 01/28/09 23:41:04 (1 year ago)
- Files:
-
- trunk/Codecprintf.c (modified) (1 diff)
- trunk/bitstream_info.c (modified) (2 diffs)
- trunk/createStaticLibs.sh (modified) (5 diffs)
- trunk/ff_private.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Codecprintf.c
r1003 r1022 51 51 const char *FourCCString(FourCharCode c) 52 52 { 53 static unsigned char fourcc[5] = {0};53 static char fourcc[sizeof("0xFFFF")] = {0}; 54 54 int i; 55 55 56 for (i = 0; i < 4; i++) fourcc[i] = c >> 8*(3-i); 56 //not a fourcc or twocc 57 if (c < '\0\0AA') { 58 snprintf(fourcc, sizeof(fourcc), "%#x", (unsigned)c); 59 } else { 60 for (i = 0; i < 4; i++) fourcc[i] = c >> 8*(3-i); 61 fourcc[4] = '\0'; 62 } 57 63 58 64 return (char*)fourcc; trunk/bitstream_info.c
r1014 r1022 20 20 21 21 #include "bswap.h" 22 #include "libavutil/internal.h" 22 23 #include "mpegvideo.h" 23 24 #include "parser.h" … … 25 26 26 27 #include "CodecIDs.h" 28 29 #undef malloc 30 #undef free 27 31 28 32 int inline MININT(int a, int b) trunk/createStaticLibs.sh
r999 r1022 8 8 9 9 generalConfigureOptions="--disable-muxers --disable-encoders --disable-stripping --enable-pthreads --disable-ffmpeg --disable-network --disable-ffplay --disable-vhook --disable-ffserver" 10 sdkflags="-isysroot $SDKROOT -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -ggdb -gstabs -Dattribute_deprecated="10 cflags="-isysroot $SDKROOT -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -ggdb -gstabs -Dattribute_deprecated= -w" 11 11 12 12 if [ "$BUILD_STYLE" = "Development" ] ; then 13 13 generalConfigureOptions="$generalConfigureOptions --disable-optimizations --disable-mmx" 14 else 14 15 optcflags="-falign-loops=16 -fweb -fstrict-aliasing -finline-limit=1000" 15 16 fi … … 22 23 23 24 if [ $no_pic -gt 0 ]; then 24 sdkflags="$sdkflags -mdynamic-no-pic" # ld can't handle -fno-pic on ppc25 cflags="$cflags -mdynamic-no-pic" # ld can't handle -fno-pic on ppc 25 26 else 26 27 #no-pic only on pre-leopard … … 29 30 fi 30 31 31 export sdkflags32 export cflags 32 33 33 34 x86tune="generic" … … 122 123 if [ "$oldbuildid_ffmpeg" != "quick" ] ; then 123 124 if [ `arch` = ppc ] ; then 124 "$SRCROOT/ffmpeg/configure" --cc=$CC --enable-cross-compile --arch=i386 --extra-ldflags="$ sdkflags -arch i386" --extra-cflags="-arch i386 $sdkflags $optcflags" $extraConfigureOptions $generalConfigureOptions --cpu=pentium-m125 "$SRCROOT/ffmpeg/configure" --cc=$CC --enable-cross-compile --arch=i386 --extra-ldflags="$cflags -arch i386" --extra-cflags="-arch i386 $cflags $optcflags" $extraConfigureOptions $generalConfigureOptions --cpu=pentium-m 125 126 else 126 "$SRCROOT/ffmpeg/configure" --cc=$CC --extra-cflags="$ sdkflags $optcflags" $extraConfigureOptions $generalConfigureOptions --cpu=pentium-m127 "$SRCROOT/ffmpeg/configure" --cc=$CC --extra-cflags="$cflags $optcflags" $extraConfigureOptions $generalConfigureOptions --cpu=pentium-m 127 128 fi 128 129 … … 152 153 if [ "$oldbuildid_ffmpeg" != "quick" ] ; then 153 154 if [ `arch` = ppc ] ; then 154 "$SRCROOT/ffmpeg/configure" --cc=$CC --extra-cflags="-faltivec $ sdkflags $optcflags" $extraConfigureOptions $generalConfigureOptions155 "$SRCROOT/ffmpeg/configure" --cc=$CC --extra-cflags="-faltivec $cflags $optcflags" $extraConfigureOptions $generalConfigureOptions 155 156 else 156 "$SRCROOT/ffmpeg/configure" --cc=$CC --enable-cross-compile --arch=ppc --extra-ldflags="$ sdkflags -arch ppc" --extra-cflags="-faltivec -arch ppc $sdkflags $optcflags" $extraConfigureOptions $generalConfigureOptions157 "$SRCROOT/ffmpeg/configure" --cc=$CC --enable-cross-compile --arch=ppc --extra-ldflags="$cflags -arch ppc" --extra-cflags="-faltivec -arch ppc $cflags $optcflags" $extraConfigureOptions $generalConfigureOptions 157 158 fi 158 159 trunk/ff_private.c
r1014 r1022 23 23 #include "ff_private.h" 24 24 #include "avcodec.h" 25 #include "libavutil/internal.h" 25 26 #include "mpegaudio.h" 26 27 #include "Codecprintf.h" 27 28 #include "CommonUtils.h" 28 29 #include "CodecIDs.h" 30 31 #undef malloc 32 #undef free 29 33 30 34 #include <CoreServices/CoreServices.h>
