summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-13 19:21:05 +0000
committerrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-13 19:21:05 +0000
commit7b1bd09dbc64471bf84eb7fcaaf32ba637a82fe2 (patch)
tree379a2089fee78407c11adf1fa6c97399cf146d9b /libmpdemux
parent18fe92cd1989cf9e8be6b2adfe099dc1b5fb6d93 (diff)
downloadmpv-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.c1
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;