[FFmpeg-devel] [RFC][PATCH] Windows Television (WTV) file system handling
Reimar Döffinger
Reimar.Doeffinger
Sat Jan 22 16:49:33 CET 2011
On Sun, Jan 23, 2011 at 02:20:49AM +1100, Peter Ross wrote:
> > > +static void str16le_to_wcs(const uint8_t *src, int srclen, wchar_t *dst, int dstlen)
> > > +{
> > > + int i;
> > > + for (i = 0; i < FFMIN(srclen, dstlen - 1); i++)
> > > + dst[i] = AV_RL16(src + 2*i);
> > > + dst[i] = 0;
> > > +}
> >
> > Also you are treating the string as UCS-2, are you really sure it
> > isn't really UTF-16?
>
> Your guess is as good as mine. Given the undocumented nature of the
> file format, we may never know.
If it's a matter of guessing, UTF-16 is a clear winner.
Using UCS-2 would be a significant extra effort to get less
when development is done on/for Windows.
More information about the ffmpeg-devel
mailing list