From: TADANO Tokumei <aimingoff@pc.nifty.jp> To: ffmpeg-devel@ffmpeg.org Cc: TADANO Tokumei <aimingoff@pc.nifty.jp> Subject: [FFmpeg-devel] [PATCH v7 3/4] lavf/mpegts.c: set some properties for ARIB caption Date: Thu, 23 Feb 2023 19:17:17 +0900 Message-ID: <20230223101718.562202-4-aimingoff@pc.nifty.jp> (raw) In-Reply-To: <20230223101718.562202-1-aimingoff@pc.nifty.jp> 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".
next prev parent reply other threads:[~2023-02-23 10:19 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-02-23 10:17 [FFmpeg-devel] [PATCH v7 0/4] add ARIB caption decoder using libaribcaption TADANO Tokumei 2023-02-23 10:17 ` [FFmpeg-devel] [PATCH v7 1/4] lavc/libaribcaption.c: " TADANO Tokumei 2023-02-23 10:17 ` [FFmpeg-devel] [PATCH v7 2/4] lavc/codec_desc.c: remove AV_CODEC_PROP_TEXT_SUB property TADANO Tokumei 2023-02-23 10:17 ` TADANO Tokumei [this message] 2023-02-23 10:17 ` [FFmpeg-devel] [PATCH v7 4/4] doc/decoders.texi: add document of aribcaption decoder TADANO Tokumei 2023-02-28 0:07 ` [FFmpeg-devel] [PATCH v7 0/4] add ARIB caption decoder using libaribcaption Ridley Combs 2023-03-03 9:58 ` TADANO Tokumei 2023-03-23 9:10 ` TADANO Tokumei
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230223101718.562202-4-aimingoff@pc.nifty.jp \ --to=aimingoff@pc.nifty.jp \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git