[FFmpeg-devel] [PATCH 4/5] fftools/ffprobe: Copy codec properties when creating the ffprobe InputStream

Marth64 marth64 at proxyid.net
Fri Jul 5 08:25:54 EEST 2024


Fixes the closed_captions and other properties fields emitted via
ffprobe's outputs.

Signed-off-by: Marth64 <marth64 at proxyid.net>
---
 fftools/ffprobe.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index 71d1ffc21f..ed2edcd638 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -3948,6 +3948,7 @@ static int open_input_file(InputFile *ifile, const char *filename,
 
             av_dict_set(&opts, "flags", "+copy_opaque", AV_DICT_MULTIKEY);
 
+            ist->dec_ctx->properties   = av_stream_get_codec_properties(stream);
             ist->dec_ctx->pkt_timebase = stream->time_base;
 
             if (avcodec_open2(ist->dec_ctx, codec, &opts) < 0) {
-- 
2.34.1



More information about the ffmpeg-devel mailing list