mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
DVD subtitle parsing - show mpeg component IDs by default
Originally committed as revision 4347 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
240c1657dc
commit
a9c3213f96
@ -1608,6 +1608,9 @@ static int mpegps_read_packet(AVFormatContext *s,
|
|||||||
} else if (startcode >= 0xa0 && startcode <= 0xbf) {
|
} else if (startcode >= 0xa0 && startcode <= 0xbf) {
|
||||||
type = CODEC_TYPE_AUDIO;
|
type = CODEC_TYPE_AUDIO;
|
||||||
codec_id = CODEC_ID_PCM_S16BE;
|
codec_id = CODEC_ID_PCM_S16BE;
|
||||||
|
} else if (startcode >= 0x20 && startcode <= 0x3f) {
|
||||||
|
type = CODEC_TYPE_SUBTITLE;
|
||||||
|
codec_id = CODEC_ID_DVD_SUBTITLE;
|
||||||
} else {
|
} else {
|
||||||
skip:
|
skip:
|
||||||
/* skip packet */
|
/* skip packet */
|
||||||
@ -1771,6 +1774,7 @@ AVInputFormat mpegps_demux = {
|
|||||||
mpegps_read_close,
|
mpegps_read_close,
|
||||||
NULL, //mpegps_read_seek,
|
NULL, //mpegps_read_seek,
|
||||||
mpegps_read_dts,
|
mpegps_read_dts,
|
||||||
|
.flags = AVFMT_SHOW_IDS,
|
||||||
};
|
};
|
||||||
|
|
||||||
int mpegps_init(void)
|
int mpegps_init(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user