From patchwork Mon Oct 11 14:52:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 31053 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2084:0:0:0:0 with SMTP id a4csp3775607ioa; Mon, 11 Oct 2021 07:53:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziXlMeq4E7/WMFUt+YG7B0Id7g0o1ensvQUwd4YoZClmGBfMOtBhhUtkg6xOQAwB8DMyxQ X-Received: by 2002:a50:d989:: with SMTP id w9mr43295393edj.99.1633963994832; Mon, 11 Oct 2021 07:53:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633963994; cv=none; d=google.com; s=arc-20160816; b=nlEsEDu+VlSn8LXx9lUo5+mn+PKw1a7YGz52PBsP8v+jsJF8FBcb2yIp9GWaHECrXv Ly7qFoDQs/lp3mQsUa+35Y8k/LcV92BDt/MhE4WuZuMT+k4F9GrRL3xmn7olsKf/CA1A p7wl2KsytWj+U6XpG51MMZpwsTe++4uIFs9EVzUa9q4RGb9cZod6XW1I5ENBtA2syq7E YctuYpFTKNgCmXGYAOaNQaqwSIVha5lWwZf++Sdnn04XMG4A8ZoYKl0JDiT9HhyZfSgg UHhs64bqFJg86BzI76uuszkCTZyYtIvgfRvd8hQFfVFZ3UPjaGhc62K3D0vS5IWJFeFb R6gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=JxGjGS6Sq7IwM7n6qfNZcKYgGPdRj3crtyucI124o/g=; b=XrhrJf52sAur9pK6GGw/1dfSC6w3Pe1Axf0a4oJaKL+lv4jM8kudIGGsjhlEAXkZaG Xw8+f6CA4QSmwcnQlVJ5qwxCgp+cQkUTD2SssVEMTmsCdIkWwR24K30vNob2CUb5UXI0 C5iaDSbP3bNamE1JZQTwBnhBpyw5bho4hUDRlbt5w+GAbqvP+7sgm+RlcTcGRJyq1JTV glTsmGQUmvqOBbFGgmVb+LhfYtAZs3bFAbBHFJzoArZ5VM1blpjAgEg6HLALYqUoBb0Y wLa1lY2Y7M3Sc028xtkFnX4Jvn2HZ1uBUg6jCKWosk0QtoV5KhVlhV51jZWhUyJT9wYb fflw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=WvW1u8fq; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id br21si11575328ejb.612.2021.10.11.07.53.14; Mon, 11 Oct 2021 07:53:14 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=WvW1u8fq; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9CE7468A88C; Mon, 11 Oct 2021 17:52:33 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3A87B68A87D for ; Mon, 11 Oct 2021 17:52:25 +0300 (EEST) Received: by mail-pg1-f171.google.com with SMTP id 66so11033332pgc.9 for ; Mon, 11 Oct 2021 07:52:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6ua2snFfYaN5pAY8zSFLJBI7CwNkd8KuFWJp/0zGhlc=; b=WvW1u8fqkriJu8JKzOUij62ORUSccxxlWEyc9NXxZxvysmO/SfjvmdZtzyO94vGOuz xupvZiU3wEzfcxvFsHJaNGIZ0t8bY8P9frgBv+XKKgAXPRf0n0PrvyLCUaoW4ceTtdXQ J0KgU/Es+9U87O9zKEfXTaaWI2P2LCsF7ys+DWsOAaipOjBQQohNMkceAhcgP7669su6 dSlQa6T+e2VnApRlQZ/b7ref6ZWD1Y1meqdTaLScgD3ASPOKIV+VwiSqh00vmcKxZXAk d1mSmJ8UtHJ8fl95UZoor2yvG3lfrZKnCYNCZcf6TbCHx6u25wl4/DRQFLApUI1l7J3/ R+Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6ua2snFfYaN5pAY8zSFLJBI7CwNkd8KuFWJp/0zGhlc=; b=YlUUedpcBlYtMOgeHjiyeekVjB8rh0/qWmyrYBfVAcMxUDCGJYsPf+9zycm74UaZrj kK/mKpD1wjQOClg22fNjcgJDfNFc2s3TxjRyrypRIXBv7pWSiMWX+ed7pPIj86u1u+FJ 3cr6rpMZP3STNDN8UyrzLX05Y0ElIBRiCflgAX8OSw+cC4dlrmQ/wZDakQ+8NdLlTZJL OedsjM2+jitSBR+REJXVHgjjD0nGC78cN2O0yl/BG590bGCOOAtYvnO2FxxNa+C5yW3+ dSHBLyzcWO90zVgfnIIrmrwFVwmFxAu04rnHQgEMvWJgIvG9cyjPFhCY649hiD02QSiB 77RA== X-Gm-Message-State: AOAM531xWv0Vemu1iNMBBUpCJTwrRMzvVebb/ebTdVIh91z23YA9XAVB j9MdGnSP+gbG939WNks0qZok/EJC7aY= X-Received: by 2002:a63:101c:: with SMTP id f28mr18404572pgl.330.1633963943518; Mon, 11 Oct 2021 07:52:23 -0700 (PDT) Received: from vpn2.localdomain ([161.117.202.209]) by smtp.gmail.com with ESMTPSA id q11sm8082287pjf.14.2021.10.11.07.52.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Oct 2021 07:52:23 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Mon, 11 Oct 2021 22:52:02 +0800 Message-Id: <1633963925-13579-5-git-send-email-lance.lmwang@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1633963925-13579-1-git-send-email-lance.lmwang@gmail.com> References: <1633963925-13579-1-git-send-email-lance.lmwang@gmail.com> Subject: [FFmpeg-devel] [PATCH 5/8] avformat/mpegtsenc: add AVSV format_identifier for AVS standard X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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: Limin Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 2MUU7S1B/5TZ From: Limin Wang Listing of Registered Identifiers: https://smpte-ra.org/registered-mpeg-ts-ids Signed-off-by: Limin Wang --- libavformat/mpegtsenc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 26fb1f1..184bb52 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -789,6 +789,9 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service) put_registration_descriptor(&q, MKTAG('V', 'C', '-', '1')); } else if (stream_type == STREAM_TYPE_VIDEO_HEVC && s->strict_std_compliance <= FF_COMPLIANCE_NORMAL) { put_registration_descriptor(&q, MKTAG('H', 'E', 'V', 'C')); + } else if (stream_type == STREAM_TYPE_VIDEO_CAVS || stream_type == STREAM_TYPE_VIDEO_AVS2 || + stream_type == STREAM_TYPE_VIDEO_AVS3) { + put_registration_descriptor(&q, MKTAG('A', 'V', 'S', 'V')); } break; case AVMEDIA_TYPE_DATA: