From: hwrenx <[email protected]>
Signed-off-by: hwrenx <[email protected]>
---
libavformat/mpegts.h | 1 +
libavformat/mpegtsenc.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/libavformat/mpegts.h b/libavformat/mpegts.h
index ecc3d33..78abe72 100644
--- a/libavformat/mpegts.h
+++ b/libavformat/mpegts.h
@@ -119,6 +119,7 @@
#define STREAM_TYPE_VIDEO_CAVS 0x42
#define STREAM_TYPE_VIDEO_VC1 0xea
#define STREAM_TYPE_VIDEO_DIRAC 0xd1
+#define STREAM_TYPE_VIDEO_AVS2 0xd2
#define STREAM_TYPE_AUDIO_AC3 0x81
#define STREAM_TYPE_AUDIO_DTS 0x82
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 0678657..b80ab25 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -336,6 +336,9 @@ static int mpegts_write_pmt(AVFormatContext *s,
MpegTSService *service)
case AV_CODEC_ID_CAVS:
stream_type = STREAM_TYPE_VIDEO_CAVS;
break;
+ case AV_CODEC_ID_AVS2:
+ stream_type = STREAM_TYPE_VIDEO_AVS2;
+ break;
case AV_CODEC_ID_DIRAC:
stream_type = STREAM_TYPE_VIDEO_DIRAC;
break;
--
2.7.4
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".