Mercurial > libavcodec.hg
changeset 12119:4530b6b4d931 libavcodec
libxvid: add some const fixing a warning
author | mru |
---|---|
date | Fri, 09 Jul 2010 10:53:36 +0000 |
parents | 14f1cfd2f1f2 |
children | a80468e73475 |
files | libxvid_internal.h libxvidff.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libxvid_internal.h Fri Jul 09 10:53:30 2010 +0000 +++ b/libxvid_internal.h Fri Jul 09 10:53:36 2010 +0000 @@ -27,6 +27,6 @@ */ -int ff_tempfile(char *prefix, char **filename); +int ff_tempfile(const char *prefix, char **filename); #endif /* AVCODEC_LIBXVID_INTERNAL_H */
--- a/libxvidff.c Fri Jul 09 10:53:30 2010 +0000 +++ b/libxvidff.c Fri Jul 09 10:53:36 2010 +0000 @@ -85,7 +85,7 @@ * *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);