Mercurial > libavformat.hg
changeset 783:2e8b5a7d7e02 libavformat
DVD subtitle parsing - show mpeg component IDs by default
author | bellard |
---|---|
date | Fri, 03 Jun 2005 14:01:49 +0000 |
parents | 56c96e647ce4 |
children | 5f3e609d7361 |
files | mpeg.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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)