summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-07-10 13:45:09 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:14:43 +0200
commit96c17fe68b12104269f70b113d757fbc67b5ed1f (patch)
treeb63db7e8a5b4d090210e621ab5ad948eaf12e788 /libmpdemux
parentd6322407c503bbca1f1bb48e06e275f7b610a3a8 (diff)
downloadmpv-96c17fe68b12104269f70b113d757fbc67b5ed1f.tar.bz2
mpv-96c17fe68b12104269f70b113d757fbc67b5ed1f.tar.xz
subs: Add support for PGS subtitle decoding via libavcodec
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31665 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_lavf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/demux_lavf.c b/libmpdemux/demux_lavf.c
index 9344356418..f94770fe3c 100644
--- a/libmpdemux/demux_lavf.c
+++ b/libmpdemux/demux_lavf.c
@@ -427,6 +427,8 @@ static void handle_stream(demuxer_t *demuxer, AVFormatContext *avfc, int i) {
type = 'v';
else if(codec->codec_id == CODEC_ID_DVB_TELETEXT)
type = 'd';
+ else if(codec->codec_id == CODEC_ID_HDMV_PGS_SUBTITLE)
+ type = 'p';
else
break;
sh_sub = new_sh_sub_sid(demuxer, i, priv->sub_streams);