History

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

Limin Wang committed 5 years ago

Commit a59f8ea1 parent ff7ed0b2 files · +4 −0Browse files

Unified · Split

2 files
  1. libavformat/mpegts.h +1 −0
  2. libavformat/mpegtsenc.c +3 −0
libavformat/mpegts.h+1−0
@@ -129,6 +129,7 @@ · 128 unmodified lines
129129 #define STREAM_TYPE_VIDEO_H264 0x1b
130130 #define STREAM_TYPE_VIDEO_HEVC 0x24
131131 #define STREAM_TYPE_VIDEO_CAVS 0x42
132+#define STREAM_TYPE_VIDEO_AVS2 0xd2
132133 #define STREAM_TYPE_VIDEO_VC1 0xea
133134 #define STREAM_TYPE_VIDEO_DIRAC 0xd1
134135
libavformat/mpegtsenc.c+3−0
@@ -366,6 +366,9 @@ static int get_dvb_stream_type(AVFormatContext *s, AVStream *st) · 365 unmodified lines
366366 case AV_CODEC_ID_CAVS:
367367 stream_type = STREAM_TYPE_VIDEO_CAVS;
368368 break;
369+ case AV_CODEC_ID_AVS2:
370+ stream_type = STREAM_TYPE_VIDEO_AVS2;
371+ break;
369372 case AV_CODEC_ID_DIRAC:
370373 stream_type = STREAM_TYPE_VIDEO_DIRAC;
371374 break;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t