diff mbox series

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

Message ID 20240705052555.402920-5-marth64@proxyid.net
State New
Headers show
Series Fix probing display of stream codec properties | expand

Commit Message

Marth64 July 5, 2024, 5:25 a.m. UTC
Fixes the closed_captions and other properties fields emitted via
ffprobe's outputs.

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

Patch

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) {