Signed-off-by: Marth64 <mart...@proxyid.net> --- libavformat/demux.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/libavformat/demux.c b/libavformat/demux.c index cba1f2e4df..61a163b267 100644 --- a/libavformat/demux.c +++ b/libavformat/demux.c @@ -2976,6 +2976,9 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) st->sample_aspect_ratio = av_mul_q(sti->display_aspect_ratio, hw_ratio); } + + if (!!(sti->avctx->properties & FF_CODEC_PROPERTY_CLOSED_CAPTIONS)) + st->disposition |= AV_DISPOSITION_CAPTIONS_EIA608; } else if (avctx->codec_type == AVMEDIA_TYPE_AUDIO) { if (!avctx->bits_per_coded_sample) avctx->bits_per_coded_sample = -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".