summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-07-09 10:53:36 +0000
committerMåns Rullgård <mans@mansr.com>2010-07-09 10:53:36 +0000
commit9ebf4fb6605abad13830a7e384d07379ca75051b (patch)
tree88de0314d8e2ea2a8827364c357208c6034f5537 /libavcodec
parenta30b33606193388d01b33db72d4e0351c5ec279f (diff)
libxvid: add some const fixing a warning
Originally committed as revision 24138 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libxvid_internal.h2
-rw-r--r--libavcodec/libxvidff.c2
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);