[FFmpeg-devel] [PATCH 05/10] Mark ff_div6 and ff_rem6 static in h264.c.

Diego 'Flameeyes' Pettenò flameeyes
Fri Oct 3 15:05:56 CEST 2008


---

 libavcodec/h264.c       |    4 ++--
 libavcodec/h264dspenc.c |    3 ---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 6542188..e0bed1a 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -86,11 +86,11 @@ static av_always_inline uint32_t pack16to32(int a, int b){
 #endif
 }
 
-const uint8_t ff_rem6[52]={
+static const uint8_t ff_rem6[52]={
 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3,
 };
 
-const uint8_t ff_div6[52]={
+static const uint8_t ff_div6[52]={
 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8,
 };
 
diff --git a/libavcodec/h264dspenc.c b/libavcodec/h264dspenc.c
index 061de5e..f64fe59 100644
--- a/libavcodec/h264dspenc.c
+++ b/libavcodec/h264dspenc.c
@@ -28,9 +28,6 @@
 
 #include "dsputil.h"
 
-extern const uint8_t ff_div6[52];
-extern const uint8_t ff_rem6[52];
-
 #define  H264_DCT_PART1(X) \
          a = block[0][X]+block[3][X]; \
          c = block[0][X]-block[3][X]; \





More information about the ffmpeg-devel mailing list