Message ID | 20230223101718.562202-4-aimingoff@pc.nifty.jp |
---|---|
State | Accepted |
Commit | 38bb137e9923a4c4c64befcf8b5fda29691440e0 |
Headers | show |
Series | add ARIB caption decoder using libaribcaption | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
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 */