diff options
author | Nico Sabbi <nicola.sabbi@poste.it> | 2007-02-09 20:34:24 +0000 |
---|---|---|
committer | Nico Sabbi <nicola.sabbi@poste.it> | 2007-02-09 20:34:24 +0000 |
commit | cf10ee184f721d3b9539f5e6d79de19704d8c52d (patch) | |
tree | 342e3065ebaa9bf7a0f564f14e59fcb87eba06ee /libavformat/mpegts.c | |
parent | 8d74e55b83f00c16790c71251ff4f7ad98f8a37a (diff) | |
download | ffmpeg-streaming-cf10ee184f721d3b9539f5e6d79de19704d8c52d.zip ffmpeg-streaming-cf10ee184f721d3b9539f5e6d79de19704d8c52d.tar.gz |
demux VC1 in mpegts
Originally committed as revision 7902 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 82227fe..c4d790d 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -503,6 +503,7 @@ static void pmt_cb(void *opaque, const uint8_t *section, int section_len) case STREAM_TYPE_VIDEO_MPEG2: case STREAM_TYPE_VIDEO_MPEG4: case STREAM_TYPE_VIDEO_H264: + case STREAM_TYPE_VIDEO_VC1: case STREAM_TYPE_AUDIO_AAC: case STREAM_TYPE_AUDIO_AC3: case STREAM_TYPE_AUDIO_DTS: @@ -813,7 +814,7 @@ static void mpegts_push_data(void *opaque, code = pes->header[3] | 0x100; if (!((code >= 0x1c0 && code <= 0x1df) || (code >= 0x1e0 && code <= 0x1ef) || - (code == 0x1bd))) + (code == 0x1bd) || (code == 0x1fd))) goto skip; if (!pes->st) { /* allocate stream */ @@ -921,6 +922,10 @@ static AVStream* new_pes_av_stream(PESContext *pes, uint32_t code) codec_type = CODEC_TYPE_VIDEO; codec_id = CODEC_ID_H264; break; + case STREAM_TYPE_VIDEO_VC1: + codec_type = CODEC_TYPE_VIDEO; + codec_id = CODEC_ID_VC1; + break; case STREAM_TYPE_AUDIO_AAC: codec_type = CODEC_TYPE_AUDIO; codec_id = CODEC_ID_AAC; |