summaryrefslogtreecommitdiff
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2005-06-03 14:01:49 +0000
committerFabrice Bellard <fabrice@bellard.org>2005-06-03 14:01:49 +0000
commita9c3213f965c22baa884168ffed8961f6202583f (patch)
tree4517aaf165b3887945f7646fafe14881caef7a55 /libavformat/mpeg.c
parent240c1657dcd45adc0e63ef947b920919071ec1f7 (diff)
DVD subtitle parsing - show mpeg component IDs by default
Originally committed as revision 4347 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 06bc4409cb..6dcbef0efd 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -1608,6 +1608,9 @@ static int mpegps_read_packet(AVFormatContext *s,
} else if (startcode >= 0xa0 && startcode <= 0xbf) {
type = CODEC_TYPE_AUDIO;
codec_id = CODEC_ID_PCM_S16BE;
+ } else if (startcode >= 0x20 && startcode <= 0x3f) {
+ type = CODEC_TYPE_SUBTITLE;
+ codec_id = CODEC_ID_DVD_SUBTITLE;
} else {
skip:
/* skip packet */
@@ -1771,6 +1774,7 @@ AVInputFormat mpegps_demux = {
mpegps_read_close,
NULL, //mpegps_read_seek,
mpegps_read_dts,
+ .flags = AVFMT_SHOW_IDS,
};
int mpegps_init(void)