summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorTADANO Tokumei <aimingoff@pc.nifty.jp>2023-02-23 19:17:17 +0900
committerrcombs <rcombs@rcombs.me>2023-03-28 12:04:52 -0400
commit38bb137e9923a4c4c64befcf8b5fda29691440e0 (patch)
treef185c882978954ab4c5af3e7cca95abb2181ea32 /libavformat
parente1dc78a13d2bbce6f1ed525a207427b3ac01eab8 (diff)
downloadffmpeg-38bb137e9923a4c4c64befcf8b5fda29691440e0.tar.gz
lavf/mpegts.c: set some properties for ARIB caption
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. Signed-off-by: rcombs <rcombs@rcombs.me>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mpegts.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index a8fa3c0b28..385d78b98b 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -2176,8 +2176,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 */