summaryrefslogtreecommitdiff
path: root/package/mplayer/patches/patch-ffmpeg_libavcodec_h264_cabac_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-30 21:59:10 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-04-30 15:11:09 +0200
commitf1a694baf28042b4cfad7f6c4da01483e13ce114 (patch)
tree0ec9e1f080426cd180df84c06abe7e5e90cd2beb /package/mplayer/patches/patch-ffmpeg_libavcodec_h264_cabac_c
parent5266a0a75cb98dc2dec0ced894fbff70d36b26ab (diff)
fix mplayer for x86 build
Diffstat (limited to 'package/mplayer/patches/patch-ffmpeg_libavcodec_h264_cabac_c')
-rw-r--r--package/mplayer/patches/patch-ffmpeg_libavcodec_h264_cabac_c39
1 files changed, 39 insertions, 0 deletions
diff --git a/package/mplayer/patches/patch-ffmpeg_libavcodec_h264_cabac_c b/package/mplayer/patches/patch-ffmpeg_libavcodec_h264_cabac_c
new file mode 100644
index 000000000..9b12513f2
--- /dev/null
+++ b/package/mplayer/patches/patch-ffmpeg_libavcodec_h264_cabac_c
@@ -0,0 +1,39 @@
+--- MPlayer-1.1.1.orig/ffmpeg/libavcodec/h264_cabac.c 2013-05-05 20:11:42.000000000 +0200
++++ MPlayer-1.1.1/ffmpeg/libavcodec/h264_cabac.c 2014-03-27 12:24:39.544699747 +0100
+@@ -39,10 +39,6 @@
+ #include "h264_mvpred.h"
+ #include "golomb.h"
+
+-#if ARCH_X86
+-#include "x86/h264_i386.h"
+-#endif
+-
+ //#undef NDEBUG
+ #include <assert.h>
+
+@@ -1652,17 +1648,6 @@ decode_cabac_residual_internal(H264Conte
+ index[coeff_count++] = last;\
+ }
+ const uint8_t *sig_off = significant_coeff_flag_offset_8x8[MB_FIELD];
+-#if ARCH_X86 && HAVE_7REGS
+- coeff_count= decode_significance_8x8_x86(CC, significant_coeff_ctx_base, index,
+- last_coeff_ctx_base, sig_off);
+- } else {
+- if (is_dc && chroma422) { // dc 422
+- DECODE_SIGNIFICANCE(7, sig_coeff_offset_dc[last], sig_coeff_offset_dc[last]);
+- } else {
+- coeff_count= decode_significance_x86(CC, max_coeff, significant_coeff_ctx_base, index,
+- last_coeff_ctx_base-significant_coeff_ctx_base);
+- }
+-#else
+ DECODE_SIGNIFICANCE( 63, sig_off[last], ff_h264_last_coeff_flag_offset_8x8[last] );
+ } else {
+ if (is_dc && chroma422) { // dc 422
+@@ -1670,7 +1655,6 @@ decode_cabac_residual_internal(H264Conte
+ } else {
+ DECODE_SIGNIFICANCE(max_coeff - 1, last, last);
+ }
+-#endif
+ }
+ assert(coeff_count > 0);
+