diff --git a/libavcodec/png.c b/libavcodec/png.c
index 534dc68bf1f56aa07ad0a681eb06f205ef3eee77..d7898c0a4140dc24aff1270dc2a8147e2fd8c649 100644
--- a/libavcodec/png.c
+++ b/libavcodec/png.c
@@ -31,12 +31,12 @@ const uint8_t ff_png_pass_ymask[NB_PASSES] = {
 };
 
 /* minimum x value */
-const uint8_t ff_png_pass_xmin[NB_PASSES] = {
+static const uint8_t ff_png_pass_xmin[NB_PASSES] = {
     0, 4, 0, 2, 0, 1, 0
 };
 
 /* x shift to get row width */
-const uint8_t ff_png_pass_xshift[NB_PASSES] = {
+static const uint8_t ff_png_pass_xshift[NB_PASSES] = {
     3, 3, 2, 2, 1, 1, 0
 };
 
diff --git a/libavcodec/png.h b/libavcodec/png.h
index 7c0ab9f6c6055bbf2838ce8655670d73525dd6f1..bab52248519e18a610854130a2b36f7fac539b49 100644
--- a/libavcodec/png.h
+++ b/libavcodec/png.h
@@ -55,12 +55,6 @@ extern const uint8_t ff_mngsig[8];
 /* Mask to determine which y pixels are valid in a pass */
 extern const uint8_t ff_png_pass_ymask[NB_PASSES];
 
-/* minimum x value */
-extern const uint8_t ff_png_pass_xmin[NB_PASSES];
-
-/* x shift to get row width */
-extern const uint8_t ff_png_pass_xshift[NB_PASSES];
-
 /* Mask to determine which pixels are valid in a pass */
 extern const uint8_t ff_png_pass_mask[NB_PASSES];