diff --git a/libavcodec/svq1.h b/libavcodec/svq1.h
index bf2ee79432e43cbed5df7a7e889f30aee092086e..a8469d920c2092d97cf47b7338a662e2f1114567 100644
--- a/libavcodec/svq1.h
+++ b/libavcodec/svq1.h
@@ -47,6 +47,9 @@ typedef struct {
     int height;
 } svq1_frame_size_t;
 
+uint16_t ff_svq1_packet_checksum (const uint8_t *data, const int length,
+                                  int value);
+
 extern const int8_t* const ff_svq1_inter_codebooks[6];
 extern const int8_t* const ff_svq1_intra_codebooks[6];
 
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 5503e45851151b3d25dfd24cfeebda113b69d765..1da68027e45e018d69f3f761fc6b2efb504a9e15 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -44,6 +44,8 @@
 #include <zlib.h>
 #endif
 
+#include "svq1.h"
+
 /**
  * @file svq3.c
  * svq3 decoder.