]> git.videolan.org Git - x264.git/commitdiff
Minor fixes and cosmetics
authorJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 11 Feb 2009 18:35:56 +0000 (10:35 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 11 Feb 2009 18:47:02 +0000 (10:47 -0800)
Suppress a GCC warning, fix a non-problematic array overflow, one REP->REP_RET.

common/x86/quant-a.asm
encoder/cabac.c
encoder/encoder.c

index fbabd16dca98dd4dc4822e0a09be913538a803fb..419499bdad3b9ad23d523f723a7d9fa6a87f97ed 100644 (file)
@@ -920,7 +920,7 @@ cglobal x264_coeff_level_run%2_%1,0,7
     inc    t6d
     sub    t4d, t3d
     jge .loop
-    RET
+    REP_RET
 %endmacro
 
 INIT_MMX
index 62280c13bc3a866e4d06f140b6cced9c5215eb9f..f84c1b46f3b4c3ab24040fb8d2b5f048c0b0f98d 100644 (file)
@@ -541,6 +541,8 @@ static int ALWAYS_INLINE x264_cabac_mb_cbf_ctxidxinc( x264_t *h, int i_cat, int
             i_nza = h->mb.i_neighbour & MB_LEFT ? (h->mb.cbp[h->mb.i_mb_xy - 1] >> (9 + i_idx)) & 1 : b_intra;
             i_nzb = h->mb.i_neighbour & MB_TOP  ? (h->mb.cbp[h->mb.i_mb_top_xy] >> (9 + i_idx)) & 1 : b_intra;
             return 4*i_cat + 2*i_nzb + i_nza;
+        default:
+            return 0;
     }
 }
 
index 593f7800c16b4161c0384769ec5690c6f7ee0843..7f7e280a40255c9a1488a3233cd986ba7bb5e486 100644 (file)
@@ -1734,7 +1734,8 @@ static void x264_encoder_frame_end( x264_t *h, x264_t *thread_current,
     pic_out->i_pts = h->fenc->i_pts;
 
     pic_out->img.i_plane = h->fdec->i_plane;
-    for(i = 0; i < 4; i++){
+    for(i = 0; i < 3; i++)
+    {
         pic_out->img.i_stride[i] = h->fdec->i_stride[i];
         pic_out->img.plane[i] = h->fdec->plane[i];
     }