[MPlayer-cvslog] r31708 - trunk/av_sub.c

reimar subversion at mplayerhq.hu
Sun Jul 11 16:02:58 CEST 2010


Author: reimar
Date: Sun Jul 11 16:02:58 2010
New Revision: 31708

Log:
Set size correctly for decoded text subs.

Modified:
   trunk/av_sub.c

Modified: trunk/av_sub.c
==============================================================================
--- trunk/av_sub.c	Sun Jul 11 15:54:23 2010	(r31707)
+++ trunk/av_sub.c	Sun Jul 11 16:02:58 2010	(r31708)
@@ -101,10 +101,12 @@ int decode_avsub(struct sh_sub *sh, uint
             break;
         case SUBTITLE_TEXT:
             *data = strdup(sub.rects[0]->text);
+            *size = strlen(*data);
             new_type = 't';
             break;
         case SUBTITLE_ASS:
             *data = strdup(sub.rects[0]->ass);
+            *size = strlen(*data);
             new_type = 'a';
             break;
         }


More information about the MPlayer-cvslog mailing list