[vlc-commits] subtitles: parse the MicroDVD position extension
Jean-Baptiste Kempf
git at videolan.org
Mon Jun 27 15:37:36 CEST 2016
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jun 27 15:27:25 2016 +0200| [9a074f9945dbf9af88d441151bf0025c8c535d1a] | committer: Jean-Baptiste Kempf
subtitles: parse the MicroDVD position extension
Ref #1825
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a074f9945dbf9af88d441151bf0025c8c535d1a
---
modules/codec/subsdec.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/modules/codec/subsdec.c b/modules/codec/subsdec.c
index 96c8a77..681750d 100644
--- a/modules/codec/subsdec.c
+++ b/modules/codec/subsdec.c
@@ -997,7 +997,15 @@ static text_segment_t* ParseSubtitles( int *pi_align, const char *psz_subtitle )
}
}
- // Hide other {x:y} atrocities, like {c:$bbggrr} or {P:x}
+ /* Currently unsupported since we don't have access to the i_align flag here
+ else if( psz_subtitle[1] == 'P' )
+ {
+ if( psz_subtitle[3] == "1" )
+ i_align = SUBPICTURE_ALIGN_TOP;
+ else if( psz_subtitle[3] == "0" )
+ i_align = SUBPICTURE_ALIGN_BOTTOM;
+ } */
+ // Hide other {x:y} atrocities, notably {o:x}
psz_subtitle = psz_tag_end + 1;
}
else
More information about the vlc-commits
mailing list