patch-ffmpeg_libavcodec_h264_cabac_c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --- MPlayer-1.1.1.orig/ffmpeg/libavcodec/h264_cabac.c 2013-05-05 20:11:42.000000000 +0200
  2. +++ MPlayer-1.1.1/ffmpeg/libavcodec/h264_cabac.c 2014-03-27 12:24:39.544699747 +0100
  3. @@ -39,10 +39,6 @@
  4. #include "h264_mvpred.h"
  5. #include "golomb.h"
  6. -#if ARCH_X86
  7. -#include "x86/h264_i386.h"
  8. -#endif
  9. -
  10. //#undef NDEBUG
  11. #include <assert.h>
  12. @@ -1652,17 +1648,6 @@ decode_cabac_residual_internal(H264Conte
  13. index[coeff_count++] = last;\
  14. }
  15. const uint8_t *sig_off = significant_coeff_flag_offset_8x8[MB_FIELD];
  16. -#if ARCH_X86 && HAVE_7REGS
  17. - coeff_count= decode_significance_8x8_x86(CC, significant_coeff_ctx_base, index,
  18. - last_coeff_ctx_base, sig_off);
  19. - } else {
  20. - if (is_dc && chroma422) { // dc 422
  21. - DECODE_SIGNIFICANCE(7, sig_coeff_offset_dc[last], sig_coeff_offset_dc[last]);
  22. - } else {
  23. - coeff_count= decode_significance_x86(CC, max_coeff, significant_coeff_ctx_base, index,
  24. - last_coeff_ctx_base-significant_coeff_ctx_base);
  25. - }
  26. -#else
  27. DECODE_SIGNIFICANCE( 63, sig_off[last], ff_h264_last_coeff_flag_offset_8x8[last] );
  28. } else {
  29. if (is_dc && chroma422) { // dc 422
  30. @@ -1670,7 +1655,6 @@ decode_cabac_residual_internal(H264Conte
  31. } else {
  32. DECODE_SIGNIFICANCE(max_coeff - 1, last, last);
  33. }
  34. -#endif
  35. }
  36. assert(coeff_count > 0);