]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/jrevdct.c
cook: Make constants passed to AV_BE2NE32C() unsigned to avoid signed overflow.
[ffmpeg] / libavcodec / jrevdct.c
index b9b2c1421cc7284580c0698e15e32f8faf631e84..395eb8c6388918f9c21c772c38429aa3e41525d9 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * jrevdct.c
- *
  * This file is part of the Independent JPEG Group's software.
  *
  * The authors make NO WARRANTY or representation, either express or implied,
@@ -60,7 +58,7 @@
  */
 
 /**
- * @file libavcodec/jrevdct.c
+ * @file
  * Independent JPEG Group's LLM idct.
  */
 
@@ -209,7 +207,7 @@ ones here or successive P-frames will drift too much with Reference frame coding
  * Perform the inverse DCT on one block of coefficients.
  */
 
-void j_rev_dct(DCTBLOCK data)
+void ff_j_rev_dct(DCTBLOCK data)
 {
   int32_t tmp0, tmp1, tmp2, tmp3;
   int32_t tmp10, tmp11, tmp12, tmp13;
@@ -692,7 +690,6 @@ void j_rev_dct(DCTBLOCK data)
                     tmp3 += z1 + z4;
                 } else {
                     /* d1 == 0, d3 != 0, d5 != 0, d7 != 0 */
-                    z1 = d7;
                     z2 = d5 + d3;
                     z3 = d7 + d3;
                     z5 = MULTIPLY(z3 + d5, FIX_1_175875602);
@@ -717,7 +714,6 @@ void j_rev_dct(DCTBLOCK data)
                 if (d1) {
                     /* d1 != 0, d3 == 0, d5 != 0, d7 != 0 */
                     z1 = d7 + d1;
-                    z2 = d5;
                     z3 = d7;
                     z4 = d5 + d1;
                     z5 = MULTIPLY(z3 + z4, FIX_1_175875602);
@@ -949,7 +945,7 @@ void j_rev_dct(DCTBLOCK data)
 #define DCTSIZE 4
 #define DCTSTRIDE 8
 
-void j_rev_dct4(DCTBLOCK data)
+void ff_j_rev_dct4(DCTBLOCK data)
 {
   int32_t tmp0, tmp1, tmp2, tmp3;
   int32_t tmp10, tmp11, tmp12, tmp13;
@@ -1136,7 +1132,7 @@ void j_rev_dct4(DCTBLOCK data)
   }
 }
 
-void j_rev_dct2(DCTBLOCK data){
+void ff_j_rev_dct2(DCTBLOCK data){
   int d00, d01, d10, d11;
 
   data[0] += 4;
@@ -1151,7 +1147,7 @@ void j_rev_dct2(DCTBLOCK data){
   data[1+1*DCTSTRIDE]= (d01 - d11)>>3;
 }
 
-void j_rev_dct1(DCTBLOCK data){
+void ff_j_rev_dct1(DCTBLOCK data){
   data[0] = (data[0] + 4)>>3;
 }