From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 6AAF145829 for ; Thu, 23 Feb 2023 10:19:00 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0880768C0ED; Thu, 23 Feb 2023 12:18:34 +0200 (EET) Received: from conssluserg-02.nifty.com (conssluserg-02.nifty.com [210.131.2.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D0E8E68C0DC for ; Thu, 23 Feb 2023 12:18:25 +0200 (EET) Received: from osamu-pc.. (M106073025034.v4.enabler.ne.jp [106.73.25.34]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 31NAHthx015305; Thu, 23 Feb 2023 19:18:07 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 31NAHthx015305 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1677147487; bh=29yOFh3CFpr/FLAE3Us62rnyzRmjUEiJq27F2o8t+MU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S/yAAFffd8Pg+DwxT5qX2BZxRoE+wGY8mP+9SfbC2zz2EEzufvNJnTANyrvOciafq l8WsbntBQpmbNajTpYWGaWE9YBZ+R5Tr/zXiVFI0f1VDGMpl5OEUzcZXETUOQCrREa Bfi5Aok/xQMexI3cZI1gNN56Pe/RiSias4+7NjW5CBveHGnA4IeUXs3wpVkAXf5u0W wFDPSDIWUR++6Z7EzaQs7NL9tz0Lp33KwrQUj46g/1XYpKWUAKwSUJUQMoKAIGsJs/ Dih0p6tygP1/yyBeHodEkuAQ7U+phCHVeohkGuKBsWK3O7SJQ+qpAqIq2IxXwf7O1M c5X9FhPwU3N6g== X-Nifty-SrcIP: [106.73.25.34] From: TADANO Tokumei To: ffmpeg-devel@ffmpeg.org Date: Thu, 23 Feb 2023 19:17:17 +0900 Message-Id: <20230223101718.562202-4-aimingoff@pc.nifty.jp> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230223101718.562202-1-aimingoff@pc.nifty.jp> References: <20230223101718.562202-1-aimingoff@pc.nifty.jp> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v7 3/4] lavf/mpegts.c: set some properties for ARIB caption 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: TADANO Tokumei Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Some additional properties are set for ARIB caption. * need_parsing = 0 ARIB caption doesn't require any parser. This avoids "parser not found" warning message. * need_context_update = 1 When any profiles are changed, set this flag to notify. --- libavformat/mpegts.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index d97702fcd7..a0e5eb75b6 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2175,8 +2175,12 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE; st->codecpar->codec_id = AV_CODEC_ID_ARIB_CAPTION; - st->codecpar->profile = picked_profile; + if (st->codecpar->profile != picked_profile) { + st->codecpar->profile = picked_profile; + sti->need_context_update = 1; + } sti->request_probe = 0; + sti->need_parsing = 0; } break; case 0xb0: /* DOVI video stream descriptor */ -- 2.30.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".