[FFmpeg-devel] [PATCH 1/3] libxvid: make local functions static.

Nicolas George nicolas.george at normalesup.org
Sun Apr 8 00:58:20 CEST 2012


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavcodec/libxvidff.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c
index 33cf997..16ee1e2 100644
--- a/libavcodec/libxvidff.c
+++ b/libavcodec/libxvidff.c
@@ -73,9 +73,9 @@ struct xvid_ff_pass1 {
 };
 
 /* Prototypes - See function implementation for details */
-int xvid_strip_vol_header(AVCodecContext *avctx, AVPacket *pkt, unsigned int header_len, unsigned int frame_len);
-int xvid_ff_2pass(void *ref, int opt, void *p1, void *p2);
-void xvid_correct_framerate(AVCodecContext *avctx);
+static int xvid_strip_vol_header(AVCodecContext *avctx, AVPacket *pkt, unsigned int header_len, unsigned int frame_len);
+static int xvid_ff_2pass(void *ref, int opt, void *p1, void *p2);
+static void xvid_correct_framerate(AVCodecContext *avctx);
 
 #if CONFIG_LIBXVID_ENCODER
 
@@ -522,7 +522,7 @@ static av_cold int xvid_encode_close(AVCodecContext *avctx) {
  * @param frame_len Length of encoded frame data
  * @return Returns new length of frame data
  */
-int xvid_strip_vol_header(AVCodecContext *avctx,
+static int xvid_strip_vol_header(AVCodecContext *avctx,
                   AVPacket *pkt,
                   unsigned int header_len,
                   unsigned int frame_len) {
@@ -562,7 +562,7 @@ int xvid_strip_vol_header(AVCodecContext *avctx,
  *
  * @param avctx Context that contains the framerate to correct.
  */
-void xvid_correct_framerate(AVCodecContext *avctx) {
+static void xvid_correct_framerate(AVCodecContext *avctx) {
     int frate, fbase;
     int est_frate, est_fbase;
     int gcd;
@@ -754,7 +754,7 @@ static int xvid_ff_2pass_after(struct xvid_context *ref,
  * @param p2 Second parameter (varies)
  * @return Returns XVID_ERR_xxxx on failure, or 0 on success
  */
-int xvid_ff_2pass(void *ref, int cmd, void *p1, void *p2) {
+static int xvid_ff_2pass(void *ref, int cmd, void *p1, void *p2) {
     switch( cmd ) {
         case XVID_PLG_INFO:
         case XVID_PLG_FRAME:
-- 
1.7.9.1



More information about the ffmpeg-devel mailing list