changeset 31642:af4d89e131b4

Set size correctly for decoded text subs.
author reimar
date Sun, 11 Jul 2010 14:02:58 +0000
parents 6c5a559d340c
children 33be6a8f9197
files av_sub.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/av_sub.c	Sun Jul 11 13:54:23 2010 +0000
+++ b/av_sub.c	Sun Jul 11 14:02:58 2010 +0000
@@ -101,10 +101,12 @@
             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;
         }