]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/g723_1_data.h
vc1dec: prevent v_edge_pos from becoming negative.
[ffmpeg] / libavcodec / g723_1_data.h
index 8ee4a91841af379b3cc97134ba630df0013e476f..38a6c599855c14dfc7e8ce0fb85f91528977fafd 100644 (file)
@@ -128,7 +128,7 @@ static const int16_t dc_lsp[LPC_ORDER] = {
 /**
  * Cosine table scaled by 2^14
  */
-static const int16_t cos_tab[COS_TBL_SIZE] = {
+static const int16_t cos_tab[COS_TBL_SIZE+1] = {
     16384,  16383,  16379,  16373,  16364,  16353,  16340,  16324,
     16305,  16284,  16261,  16235,  16207,  16176,  16143,  16107,
     16069,  16029,  15986,  15941,  15893,  15843,  15791,  15736,
@@ -193,6 +193,7 @@ static const int16_t cos_tab[COS_TBL_SIZE] = {
     15679,  15736,  15791,  15843,  15893,  15941,  15986,  16029,
     16069,  16107,  16143,  16176,  16207,  16235,  16261,  16284,
     16305,  16324,  16340,  16353,  16364,  16373,  16379,  16383,
+    16384
 };
 
 /**