Commit cbb9f1ef authored by cehoyos's avatar cehoyos

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()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22115 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 95ca135e
...@@ -82,7 +82,7 @@ void xvid_correct_framerate(AVCodecContext *avctx); ...@@ -82,7 +82,7 @@ void xvid_correct_framerate(AVCodecContext *avctx);
* @param avctx AVCodecContext pointer to context * @param avctx AVCodecContext pointer to context
* @return Returns 0 on success, -1 on failure * @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 xerr, i;
int xvid_flags = avctx->flags; int xvid_flags = avctx->flags;
struct xvid_context *x = avctx->priv_data; struct xvid_context *x = avctx->priv_data;
...@@ -367,7 +367,7 @@ av_cold int ff_xvid_encode_init(AVCodecContext *avctx) { ...@@ -367,7 +367,7 @@ av_cold int ff_xvid_encode_init(AVCodecContext *avctx) {
* @param data Pointer to AVFrame of unencoded frame * @param data Pointer to AVFrame of unencoded frame
* @return Returns 0 on success, -1 on failure * @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) { unsigned char *frame, int buf_size, void *data) {
int xerr, i; int xerr, i;
char *tmp; char *tmp;
...@@ -475,7 +475,7 @@ int ff_xvid_encode_frame(AVCodecContext *avctx, ...@@ -475,7 +475,7 @@ int ff_xvid_encode_frame(AVCodecContext *avctx,
* @param avctx AVCodecContext pointer to context * @param avctx AVCodecContext pointer to context
* @return Returns 0, success guaranteed * @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; struct xvid_context *x = avctx->priv_data;
xvid_encore(x->encoder_handle, XVID_ENC_DESTROY, NULL, NULL); xvid_encore(x->encoder_handle, XVID_ENC_DESTROY, NULL, NULL);
...@@ -772,9 +772,9 @@ AVCodec libxvid_encoder = { ...@@ -772,9 +772,9 @@ AVCodec libxvid_encoder = {
CODEC_TYPE_VIDEO, CODEC_TYPE_VIDEO,
CODEC_ID_XVID, CODEC_ID_XVID,
sizeof(struct xvid_context), sizeof(struct xvid_context),
ff_xvid_encode_init, xvid_encode_init,
ff_xvid_encode_frame, xvid_encode_frame,
ff_xvid_encode_close, xvid_encode_close,
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= NULL_IF_CONFIG_SMALL("libxvidcore MPEG-4 part 2"), .long_name= NULL_IF_CONFIG_SMALL("libxvidcore MPEG-4 part 2"),
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment