Mercurial > mplayer.hg
changeset 35042:d89db56bc91b
Implement the erase-page teletext flag.
This is necessary in order to display teletext-based subtitles
properly.
author | reimar |
---|---|
date | Sat, 01 Sep 2012 14:38:45 +0000 |
parents | f674ec17b65b |
children | 35fe96aedad5 |
files | libmpcodecs/dec_teletext.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/dec_teletext.c Fri Aug 31 20:09:30 2012 +0000 +++ b/libmpcodecs/dec_teletext.c Sat Sep 01 14:38:45 2012 +0000 @@ -579,6 +579,10 @@ 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];