On 04/13/2011 07:46 AM, Kirill Gavrilov wrote:
> Hi, I'm newbie here.
>
> No Unicode API in FFmpeg make me very sad (this is important only for
> Windows applications).
> I partially investigate the current i/o and found that creating Unicode
> versions for major functions cause to create the tons of another stuff.
> But I found another 'stupid' way - I define new fileU protocol which assume
> the input path is in utf-8, automatically converts it to the utf16 string
> and use Unicode function to open the file.
>
> Tell me if there is a better way to provide Unicode support or give me your
> suggestions how I should modify the patch.
> Thanks.
The idea isn't bad, I'd like to have the opinion of window users.
nit: you had a stray line added that could be avoided
diff --git a/libavformat/allformats.c b/libavformat/allformats.c
index f0e98ed..8730445 100644
--- a/libavformat/allformats.c
+++ b/libavformat/allformats.c
@@ -36,7 +36,7 @@
#define REGISTER_PROTOCOL(X,x) { \
extern URLProtocol ff_##x##_protocol; \
if(CONFIG_##X##_PROTOCOL)
ffurl_register_protocol(&ff_##x##_protocol, sizeof(ff_##x##_protocol)); }
-
+
void av_register_all(void)
--
Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel