From 9ebf4fb6605abad13830a7e384d07379ca75051b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Fri, 9 Jul 2010 10:53:36 +0000 Subject: [PATCH] libxvid: add some const fixing a warning Originally committed as revision 24138 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/libxvid_internal.h | 2 +- libavcodec/libxvidff.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/libxvid_internal.h b/libavcodec/libxvid_internal.h index 2614f5b5ea..6517f62174 100644 --- a/libavcodec/libxvid_internal.h +++ b/libavcodec/libxvid_internal.h @@ -27,6 +27,6 @@ */ -int ff_tempfile(char *prefix, char **filename); +int ff_tempfile(const char *prefix, char **filename); #endif /* AVCODEC_LIBXVID_INTERNAL_H */ diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c index 834e02d25c..97e0d0c6e8 100644 --- a/libavcodec/libxvidff.c +++ b/libavcodec/libxvidff.c @@ -85,7 +85,7 @@ void xvid_correct_framerate(AVCodecContext *avctx); * *prefix can be a character constant; *filename will be allocated internally. * @return file descriptor of opened file (or -1 on error) * and opened file name in **filename. */ -int ff_tempfile(char *prefix, char **filename) { +int ff_tempfile(const char *prefix, char **filename) { int fd=-1; #if !HAVE_MKSTEMP *filename = tempnam(".", prefix);