[FFmpeg-devel] [PATCH] Fix warning in decode_residual (in h264_cavlc.c)
Eli Friedman
eli.friedman
Sun Jun 27 23:30:47 CEST 2010
Patch attached. Fixes warning "suggest parentheses around comparison
in operand of ?&?".
-Eli
-------------- next part --------------
Index: libavcodec/h264_cavlc.c
===================================================================
--- libavcodec/h264_cavlc.c (revision 23833)
+++ libavcodec/h264_cavlc.c (working copy)
@@ -408,7 +408,7 @@
if(trailing_ones<total_coeff) {
int mask, prefix;
- int suffix_length = total_coeff > 10 & trailing_ones < 3;
+ int suffix_length = (total_coeff > 10) & (trailing_ones < 3);
int bitsi= show_bits(gb, LEVEL_TAB_BITS);
int level_code= cavlc_level_tab[suffix_length][bitsi][0];
More information about the ffmpeg-devel
mailing list