summaryrefslogtreecommitdiff
path: root/libavutil/avutil.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-01 01:51:14 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-04 15:38:52 +0100
commit85cabf1ca98fcc502fcf5b8d6bfb6d8061c2caef (patch)
tree5cac6c8fcca90badb397dd816513491eebf5929c /libavutil/avutil.h
parentd0ac60730d26f1d59817c675806ed199abbef906 (diff)
avutil: add av_fopen_utf8()
fopen() on windows uses UTF-16, we use UTF-8 everywhere, this function bridges the gap by using avpriv_open() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/avutil.h')
-rw-r--r--libavutil/avutil.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/avutil.h b/libavutil/avutil.h
index 4692c005c7..4e680ed0e0 100644
--- a/libavutil/avutil.h
+++ b/libavutil/avutil.h
@@ -313,6 +313,13 @@ unsigned av_int_list_length_for_size(unsigned elsize,
av_int_list_length_for_size(sizeof(*(list)), list, term)
/**
+ * Open a file using a UTF-8 filename.
+ * The API of this function matches POSIX fopen(), errors are returned through
+ * errno.
+ */
+FILE *av_fopen_utf8(const char *path, const char *mode);
+
+/**
* @}
* @}
*/