summaryrefslogtreecommitdiff
path: root/libavformat/mpegtsenc.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-08-24 18:27:07 +0800
committerLimin Wang <lance.lmwang@gmail.com>2021-10-19 20:15:48 +0800
commita59f8ea2a9104b47b231a73a4c6bd0678fd9529c (patch)
treea8b5c3b3f581e995142f964b7386f277402fd054 /libavformat/mpegtsenc.c
parentff7ed0b006dfe35d02ef14034e9ee514f8d5963d (diff)
avformat/mpegts: add support for stream_type 0xd2, which is AVS2
GB/T 17975.1 Information technology-Generic coding of moving pictures and associated audio information-Part 1:Systems Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
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 98dac17994..f3b7914175 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -366,6 +366,9 @@ static int get_dvb_stream_type(AVFormatContext *s, AVStream *st)
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;