diff options
author | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-02-28 18:57:18 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-02-28 18:57:18 +0000 |
commit | 30f7682404d654dab2f88d4906f10a5dfecd1a74 (patch) | |
tree | 1c3c4b1164f03a9865d4c4f59d237415b859d5fb /libavcodec | |
parent | 5dfa637ccac6476c1eece6a11b21f156f458a323 (diff) | |
download | ffmpeg-30f7682404d654dab2f88d4906f10a5dfecd1a74.tar.gz |
Make the following functions static (and remove ff_), they are only used
inside libxvidff.c:
ff_xvid_encode_init(), ff_xvid_encode_frame(), ff_xvid_encode_close()
Originally committed as revision 22115 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libxvidff.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c index bb73f505bb..fd20f73545 100644 --- a/libavcodec/libxvidff.c +++ b/libavcodec/libxvidff.c @@ -82,7 +82,7 @@ void xvid_correct_framerate(AVCodecContext *avctx); * @param avctx AVCodecContext pointer to context * @return Returns 0 on success, -1 on failure */ -av_cold int ff_xvid_encode_init(AVCodecContext *avctx) { +static av_cold int xvid_encode_init(AVCodecContext *avctx) { int xerr, i; int xvid_flags = avctx->flags; struct xvid_context *x = avctx->priv_data; @@ -367,7 +367,7 @@ av_cold int ff_xvid_encode_init(AVCodecContext *avctx) { * @param data Pointer to AVFrame of unencoded frame * @return Returns 0 on success, -1 on failure */ -int ff_xvid_encode_frame(AVCodecContext *avctx, +static int xvid_encode_frame(AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data) { int xerr, i; char *tmp; @@ -475,7 +475,7 @@ int ff_xvid_encode_frame(AVCodecContext *avctx, * @param avctx AVCodecContext pointer to context * @return Returns 0, success guaranteed */ -av_cold int ff_xvid_encode_close(AVCodecContext *avctx) { +static av_cold int xvid_encode_close(AVCodecContext *avctx) { struct xvid_context *x = avctx->priv_data; xvid_encore(x->encoder_handle, XVID_ENC_DESTROY, NULL, NULL); @@ -772,9 +772,9 @@ AVCodec libxvid_encoder = { CODEC_TYPE_VIDEO, CODEC_ID_XVID, sizeof(struct xvid_context), - ff_xvid_encode_init, - ff_xvid_encode_frame, - ff_xvid_encode_close, + xvid_encode_init, + xvid_encode_frame, + xvid_encode_close, .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, .long_name= NULL_IF_CONFIG_SMALL("libxvidcore MPEG-4 part 2"), }; |