diff mpeg.c @ 783:2e8b5a7d7e02 libavformat

DVD subtitle parsing - show mpeg component IDs by default
author bellard
date Fri, 03 Jun 2005 14:01:49 +0000
parents cbfea73709bd
children 411b75055a43
line wrap: on
line diff
--- a/mpeg.c	Fri Jun 03 08:54:32 2005 +0000
+++ b/mpeg.c	Fri Jun 03 14:01:49 2005 +0000
@@ -1608,6 +1608,9 @@
     } 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 @@
     mpegps_read_close,
     NULL, //mpegps_read_seek,
     mpegps_read_dts,
+    .flags = AVFMT_SHOW_IDS,
 };
 
 int mpegps_init(void)