From patchwork Sat Oct 12 01:28:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hwren X-Patchwork-Id: 15712 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id E4D994495C2 for ; Sat, 12 Oct 2019 04:59:58 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C47B868999F; Sat, 12 Oct 2019 04:59:58 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from m15-111.126.com (m15-111.126.com [220.181.15.111]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 87B176883E0 for ; Sat, 12 Oct 2019 04:59:52 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=Z0ePc17srE6n043mQg W8JamjCEOjzTEotao3ztx+VUk=; b=nM9skUcQBNO38H3lZxKgCZqHU2nvbsPoBF IKtZa081VdP/8BPBjPMd/4li49K4EVwpmLsyxO7s6xmHk6plfT9h1aA7Q0KHKnIF oes7jJQdw5uTqAyNdm0AiQyfAVrzFWbHY+FJKzzvKW4V0skYzohjawa4gV8kp79K EAb9N+z5I= Received: from localhost.localdomain (unknown [162.105.23.171]) by smtp1 (Coremail) with SMTP id C8mowAAHM_EmLKFdkY4IBw--.35286S3; Sat, 12 Oct 2019 09:28:11 +0800 (CST) From: hwren To: ffmpeg-devel@ffmpeg.org Date: Sat, 12 Oct 2019 09:28:04 +0800 Message-Id: <1570843684-16418-1-git-send-email-hwrenx@126.com> X-Mailer: git-send-email 2.7.4 X-CM-TRANSID: C8mowAAHM_EmLKFdkY4IBw--.35286S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7Xw1rKr1xuw13Ar4UKF1kGrg_yoWkGrb_ZF 17Gw47uFZ0vFs7Kw4qvrW7GF48GryrXr40k343tr4kWF93XrW5Xrnagr9rJw4fXw40v3WY qw1rAayaqa9xWjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUjqQDUUUUUU== X-Originating-IP: [162.105.23.171] X-CM-SenderInfo: pkzuv0b06rjloofrz/1tbiDwtM6VpD+cN6+QAAsB Subject: [FFmpeg-devel] [PATCH] lavf/mpegtsenc: add stream type AVS2 X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: hwrenx MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: hwrenx Signed-off-by: hwrenx --- 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;