[FFmpeg-devel] [PATCH] lavf/mpegtsenc: add support for AVS2

hwren hwrenx at 126.com
Sat May 26 09:54:57 EEST 2018


Signed-off-by: hwren <hwrenx at 126.com>
---
 libavformat/mpegtsenc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 3339e26..8b4f730 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -344,6 +344,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



More information about the ffmpeg-devel mailing list