aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-10-29 13:14:37 +0000
committerDiego Biurrun <diego@biurrun.de>2006-10-29 13:14:37 +0000
commitd5cd50ed73dc70707c24a9ae06bb8b77c68f5e67 (patch)
tree5c1e7c70334fe52567b194488ae206ec3cef41e1 /libavcodec/h264.c
parent68300911a0d1237015f01d989fe12bc29726ad0c (diff)
downloadffmpeg-d5cd50ed73dc70707c24a9ae06bb8b77c68f5e67.tar.gz
Fix compilation with PIC enabled, BRANCHLESS_GET_CABAC is defined under
!PIC but gets used without a check for !PIC. Originally committed as revision 6834 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 865e80ac39..440c254bf2 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -6139,7 +6139,7 @@ static int decode_cabac_residual( H264Context *h, DCTELEM *block, int cat, int n
index[coeff_count++] = last;\
}
const uint8_t *sig_off = significant_coeff_flag_offset_8x8[MB_FIELD];
-#ifdef ARCH_X86
+#if defined(ARCH_X86) && !(defined(PIC) && defined(__GNUC__))
coeff_count= decode_significance_8x8_x86(CC, significant_coeff_ctx_base, index, sig_off);
} else {
coeff_count= decode_significance_x86(CC, max_coeff, significant_coeff_ctx_base, index);