summaryrefslogtreecommitdiff
path: root/libavformat/mpegtsenc.c
diff options
context:
space:
mode:
authorCan Wu <wu.canus@gmail.com>2013-02-26 10:01:21 +0800
committerAnton Khirnov <anton@khirnov.net>2013-03-15 09:33:24 +0100
commit81cf53e13309bd58aeb10f3574807f66b25d0091 (patch)
treeeed71bfe4784eaaf461fa209cd4ce84bc649a5a2 /libavformat/mpegtsenc.c
parent3e175a2a550f5c2f788e8cd969052e10a5025a27 (diff)
mpegts: add support for stream_type 0x42, which is CAVS
This allows demuxing and muxing of CAVS TS streams. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat/mpegtsenc.c')
-rw-r--r--libavformat/mpegtsenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 29d83c668a..44a5e5b089 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -279,6 +279,9 @@ static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
case AV_CODEC_ID_H264:
stream_type = STREAM_TYPE_VIDEO_H264;
break;
+ case AV_CODEC_ID_CAVS:
+ stream_type = STREAM_TYPE_VIDEO_CAVS;
+ break;
case AV_CODEC_ID_DIRAC:
stream_type = STREAM_TYPE_VIDEO_DIRAC;
break;