| OLD | NEW | 
|---|
| 1 diff -rpu -N orig/configure ffmpeg-mt/configure | 1 diff -wurp -N orig/configure ffmpeg-mt/configure | 
| 2 --- orig/configure»     2010-10-11 16:53:56 -0700 | 2 --- orig/configure»     2010-11-04 16:20:37 -0700 | 
| 3 +++ ffmpeg-mt/configure»2010-10-11 16:53:59 -0700 | 3 +++ ffmpeg-mt/configure»2010-11-04 16:20:45 -0700 | 
| 4 @@ -1840,7 +1840,7 @@ elif $cc -v 2>&1 | grep -qi ^gcc; then | 4 @@ -1845,7 +1845,7 @@ elif $cc -v 2>&1 | grep -qi ^gcc; then | 
| 5          CC_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' | 5          CC_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' | 
| 6          AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' | 6          AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' | 
| 7      fi | 7      fi | 
| 8 -    speed_cflags='-O3' | 8 -    speed_cflags='-O3' | 
| 9 +    speed_cflags='-O2' | 9 +    speed_cflags='-O2' | 
| 10      size_cflags='-Os' | 10      size_cflags='-Os' | 
| 11  elif $cc --version 2>/dev/null | grep -q Intel; then | 11  elif $cc --version 2>/dev/null | grep -q Intel; then | 
| 12      cc_type=icc | 12      cc_type=icc | 
| 13 @@ -1990,6 +1990,7 @@ elif $cc -v 2>&1 | grep -q Open64; then | 13 @@ -1995,6 +1995,7 @@ elif $cc -v 2>&1 | grep -q Open64; then | 
| 14      cc_ident=$($cc -v 2>&1 | head -n1 | tr -d :) | 14      cc_ident=$($cc -v 2>&1 | head -n1 | tr -d :) | 
| 15      CC_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' | 15      CC_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' | 
| 16      AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' | 16      AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' | 
| 17 +# O2 produces smaller/faster code on P4 and same performance on Core/Atom. | 17 +# O2 produces smaller/faster code on P4 and same performance on Core/Atom. | 
| 18      speed_cflags='-O2' | 18      speed_cflags='-O2' | 
| 19      size_cflags='-Os' | 19      size_cflags='-Os' | 
| 20  fi | 20  fi | 
| 21 @@ -2709,6 +2710,10 @@ if ! disabled pthreads && ! enabled w32t | 21 @@ -2714,6 +2715,10 @@ if ! disabled pthreads && ! enabled w32t | 
| 22          add_extralibs -pthreads | 22          add_extralibs -pthreads | 
| 23      elif check_func pthread_create -lpthreadGC2; then | 23      elif check_func pthread_create -lpthreadGC2; then | 
| 24          add_extralibs -lpthreadGC2 | 24          add_extralibs -lpthreadGC2 | 
| 25 +# static pthreads improves startup time | 25 +# static pthreads improves startup time | 
| 26 +    elif check_func pthread_create -lpthreadGC2 -lws2_32; then | 26 +    elif check_func pthread_create -lpthreadGC2 -lws2_32; then | 
| 27 +        add_cflags -DPTW32_STATIC_LIB | 27 +        add_cflags -DPTW32_STATIC_LIB | 
| 28 +        add_extralibs -lpthreadGC2 -lws2_32 | 28 +        add_extralibs -lpthreadGC2 -lws2_32 | 
| 29      elif ! check_lib pthread.h pthread_create -lpthread; then | 29      elif ! check_lib pthread.h pthread_create -lpthread; then | 
| 30          disable pthreads | 30          disable pthreads | 
| 31      fi | 31      fi | 
| 32 @@ -2937,7 +2942,8 @@ elif enabled ccc; then | 32 @@ -2942,7 +2947,8 @@ elif enabled ccc; then | 
| 33  elif enabled gcc; then | 33  elif enabled gcc; then | 
| 34      check_cflags -fno-tree-vectorize | 34      check_cflags -fno-tree-vectorize | 
| 35      check_cflags -Werror=implicit-function-declaration | 35      check_cflags -Werror=implicit-function-declaration | 
| 36 -    check_cflags -Werror=missing-prototypes | 36 -    check_cflags -Werror=missing-prototypes | 
| 37 +# Removed to allow msys gcc 4.2.1-sjlj to compile | 37 +# Removed to allow msys gcc 4.2.1-sjlj to compile | 
| 38 +#   check_cflags -Werror=missing-prototypes | 38 +#   check_cflags -Werror=missing-prototypes | 
| 39  elif enabled llvm_gcc; then | 39  elif enabled llvm_gcc; then | 
| 40      check_cflags -mllvm -stack-alignment=16 | 40      check_cflags -mllvm -stack-alignment=16 | 
| 41  elif enabled clang; then | 41  elif enabled clang; then | 
| 42 diff -rpu -N orig/libavcodec/allcodecs.c ffmpeg-mt/libavcodec/allcodecs.c | 42 diff -wurp -N orig/libavcodec/allcodecs.c ffmpeg-mt/libavcodec/allcodecs.c | 
| 43 --- orig/libavcodec/allcodecs.c»2010-10-11 16:53:56 -0700 | 43 --- orig/libavcodec/allcodecs.c»2010-11-04 16:20:37 -0700 | 
| 44 +++ ffmpeg-mt/libavcodec/allcodecs.c»   2010-10-11 16:53:59 -0700 | 44 +++ ffmpeg-mt/libavcodec/allcodecs.c»   2010-11-04 16:16:41 -0700 | 
| 45 @@ -45,6 +45,14 @@ | 45 @@ -45,6 +45,15 @@ | 
| 46            extern AVBitStreamFilter x##_bsf; \ | 46            extern AVBitStreamFilter x##_bsf; \ | 
| 47            if(CONFIG_##X##_BSF)     av_register_bitstream_filter(&x##_bsf); } | 47            if(CONFIG_##X##_BSF)     av_register_bitstream_filter(&x##_bsf); } | 
| 48 | 48 | 
| 49 +#ifdef PTW32_STATIC_LIB | 49 +#ifdef PTW32_STATIC_LIB | 
|  | 50 +#include "pthread.h" | 
| 50 +static void detach_ptw32(void) | 51 +static void detach_ptw32(void) | 
| 51 +{ | 52 +{ | 
| 52 +    pthread_win32_thread_detach_np(); | 53 +    pthread_win32_thread_detach_np(); | 
| 53 +    pthread_win32_process_detach_np(); | 54 +    pthread_win32_process_detach_np(); | 
| 54 +} | 55 +} | 
| 55 +#endif | 56 +#endif | 
| 56 + | 57 + | 
| 57  void avcodec_register_all(void) | 58  void avcodec_register_all(void) | 
| 58  { | 59  { | 
| 59      static int initialized; | 60      static int initialized; | 
| 60 @@ -53,6 +61,11 @@ void avcodec_register_all(void) | 61 @@ -53,6 +62,11 @@ void avcodec_register_all(void) | 
| 61          return; | 62          return; | 
| 62      initialized = 1; | 63      initialized = 1; | 
| 63 | 64 | 
| 64 +#ifdef PTW32_STATIC_LIB | 65 +#ifdef PTW32_STATIC_LIB | 
| 65 +    pthread_win32_process_attach_np(); | 66 +    pthread_win32_process_attach_np(); | 
| 66 +    pthread_win32_thread_attach_np(); | 67 +    pthread_win32_thread_attach_np(); | 
| 67 +    atexit(detach_ptw32); | 68 +    atexit(detach_ptw32); | 
| 68 +#endif | 69 +#endif | 
| 69      /* hardware accelerators */ | 70      /* hardware accelerators */ | 
| 70      REGISTER_HWACCEL (H263_VAAPI, h263_vaapi); | 71      REGISTER_HWACCEL (H263_VAAPI, h263_vaapi); | 
| 71      REGISTER_HWACCEL (H264_DXVA2, h264_dxva2); | 72      REGISTER_HWACCEL (H264_DXVA2, h264_dxva2); | 
|  | 73 @@ -391,6 +405,7 @@ void avcodec_register_all(void) | 
|  | 74      REGISTER_BSF     (CHOMP, chomp); | 
|  | 75      REGISTER_BSF     (DUMP_EXTRADATA, dump_extradata); | 
|  | 76      REGISTER_BSF     (H264_MP4TOANNEXB, h264_mp4toannexb); | 
|  | 77 +    REGISTER_BSF     (MPEG4VIDEO_ES, mpeg4video_es); | 
|  | 78      REGISTER_BSF     (IMX_DUMP_HEADER, imx_dump_header); | 
|  | 79      REGISTER_BSF     (MJPEGA_DUMP_HEADER, mjpega_dump_header); | 
|  | 80      REGISTER_BSF     (MP3_HEADER_COMPRESS, mp3_header_compress); | 
|  | 81 @@ -399,5 +414,7 @@ void avcodec_register_all(void) | 
|  | 82      REGISTER_BSF     (NOISE, noise); | 
|  | 83      REGISTER_BSF     (REMOVE_EXTRADATA, remove_extradata); | 
|  | 84      REGISTER_BSF     (TEXT2MOVSUB, text2movsub); | 
|  | 85 +    REGISTER_BSF     (VC1_ASFTORCV, vc1_asftorcv); | 
|  | 86 +    REGISTER_BSF     (VC1_ASFTOANNEXG, vc1_asftoannexg); | 
|  | 87  } | 
|  | 88 | 
| OLD | NEW | 
|---|