summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2005-07-02 19:39:58 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2005-07-02 19:39:58 +0000
commit19d9ac8169aea4e1fa4b12fb23db1b0526f2dc63 (patch)
tree2fb190f96f3324da510eab5da062ec0ca815c566 /libavcodec
parent0ede2c556aa49cae7572c6bee38aa2adbd254d61 (diff)
parenthesing to avoid compiler errors in the future - compared asm outputs, behaviour didnt changed
Originally committed as revision 4417 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index bb3c876c98..741c0503c6 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2964,7 +2964,7 @@ static int alloc_tables(H264Context *h){
shift -= 2;
for(x=0; x<64; x++)
h->dequant8_coeff[q][x] = dequant8_coeff_init[idx][
- dequant8_coeff_init_scan[(x>>1)&12 | x&3] ] << shift;
+ dequant8_coeff_init_scan[((x>>1)&12) | (x&3)] ] << shift;
}
if(h->sps.transform_bypass){
for(x=0; x<16; x++)
@@ -4403,7 +4403,7 @@ static inline int get_dct8x8_allowed(H264Context *h){
int i;
for(i=0; i<4; i++){
if(!IS_SUB_8X8(h->sub_mb_type[i])
- || !h->sps.direct_8x8_inference_flag && IS_DIRECT(h->sub_mb_type[i]))
+ || (!h->sps.direct_8x8_inference_flag && IS_DIRECT(h->sub_mb_type[i])))
return 0;
}
return 1;