[MPlayer-cvslog] r35136 - trunk/libmpcodecs/dec_teletext.c

reimar subversion at mplayerhq.hu
Sat Sep 1 16:38:45 CEST 2012


Author: reimar
Date: Sat Sep  1 16:38:45 2012
New Revision: 35136

Log:
Implement the erase-page teletext flag.
This is necessary in order to display teletext-based subtitles
properly.

Modified:
   trunk/libmpcodecs/dec_teletext.c

Modified: trunk/libmpcodecs/dec_teletext.c
==============================================================================
--- trunk/libmpcodecs/dec_teletext.c	Fri Aug 31 22:09:30 2012	(r35135)
+++ trunk/libmpcodecs/dec_teletext.c	Sat Sep  1 16:38:45 2012	(r35136)
@@ -579,6 +579,10 @@ static void put_to_cache(priv_vbi_t* pri
     pgc->subpagenum=pg->subpagenum;
     pgc->primary_lang=pg->primary_lang;
     pgc->secondary_lang=pg->secondary_lang;
+    if (pg->flags & TT_PGFL_ERASE_PAGE) {
+        memset(pgc->raw, 0, sizeof(pgc->raw));
+        pg->flags &= ~TT_PGFL_ERASE_PAGE;
+    }
     pgc->flags=pg->flags;
     for(j=0;j<6;++j)
         pgc->links[j]=pg->links[j];


More information about the MPlayer-cvslog mailing list