[MPlayer-cvslog] r29952 - trunk/subreader.c

reimar subversion at mplayerhq.hu
Sun Nov 22 01:22:24 CET 2009


Author: reimar
Date: Sun Nov 22 01:22:24 2009
New Revision: 29952

Log:
Fix crash with partial fribidi conversion.

Modified:
   trunk/subreader.c

Modified: trunk/subreader.c
==============================================================================
--- trunk/subreader.c	Sun Nov 22 01:10:52 2009	(r29951)
+++ trunk/subreader.c	Sun Nov 22 01:22:24 2009	(r29952)
@@ -1199,7 +1199,7 @@ static subtitle* sub_fribidi (subtitle *
       sub->text[l] = op;
     }
   }
-  if (l){
+  if (!from && l){
     for (l = sub->lines; l;)
       free (sub->text[--l]);
     return ERR;


More information about the MPlayer-cvslog mailing list