diff options
author | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-04-13 19:21:05 +0000 |
---|---|---|
committer | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-04-13 19:21:05 +0000 |
commit | 7b1bd09dbc64471bf84eb7fcaaf32ba637a82fe2 (patch) | |
tree | 379a2089fee78407c11adf1fa6c97399cf146d9b /libmpdemux | |
parent | 18fe92cd1989cf9e8be6b2adfe099dc1b5fb6d93 (diff) | |
download | mpv-7b1bd09dbc64471bf84eb7fcaaf32ba637a82fe2.tar.bz2 mpv-7b1bd09dbc64471bf84eb7fcaaf32ba637a82fe2.tar.xz |
Make string_utf16 code behave almost the same with or without iconv
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15151 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/asf_mmst_streaming.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpdemux/asf_mmst_streaming.c b/libmpdemux/asf_mmst_streaming.c index d05a9629cc..e364c8e31a 100644 --- a/libmpdemux/asf_mmst_streaming.c +++ b/libmpdemux/asf_mmst_streaming.c @@ -136,6 +136,7 @@ static void string_utf16(char *dest, char *src, int len) { else { #endif + if (len > 499) len = 499; for (i=0; i<len; i++) { dest[i*2] = src[i]; dest[i*2+1] = 0; |