From 54b90ac7f51b5c3ef4e6f8316f58b42beb52535d Mon Sep 17 00:00:00 2001 From: Alix von Schirp Date: Sun, 22 Feb 2026 01:57:55 +0100 Subject: [PATCH] fix?: remove tags from stream and chapter Signed-off-by: Alix von Schirp --- src/ffprobe-wasm-wrapper.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/ffprobe-wasm-wrapper.cpp b/src/ffprobe-wasm-wrapper.cpp index b6950c0..cd72d0e 100644 --- a/src/ffprobe-wasm-wrapper.cpp +++ b/src/ffprobe-wasm-wrapper.cpp @@ -47,7 +47,6 @@ typedef struct Stream { int channels; int sample_rate; int frame_size; - std::vector tags; } Stream; typedef struct Chapter { @@ -55,7 +54,6 @@ typedef struct Chapter { std::string time_base; float start; float end; - std::vector tags; } Chapter; typedef struct Frame { @@ -154,15 +152,6 @@ FileInfoResponse get_file_info(std::string filename) { .frame_size = (int)pLocalCodecParameters->frame_size, }; - // Add tags to stream. - const AVDictionaryEntry *tag = NULL; - while ((tag = av_dict_get(pFormatContext->streams[i]->metadata, "", tag, AV_DICT_IGNORE_SUFFIX))) { - Tag t = { - .key = tag->key, - .value = tag->value, - }; - stream.tags.push_back(t); - } r.streams.push_back(stream); } @@ -183,15 +172,6 @@ FileInfoResponse get_file_info(std::string filename) { .end = (float)chapter->end, }; - // Add tags to chapter. - const AVDictionaryEntry *tag = NULL; - while ((tag = av_dict_get(chapter->metadata, "", tag, AV_DICT_IGNORE_SUFFIX))) { - Tag t = { - .key = tag->key, - .value = tag->value, - }; - c.tags.push_back(t); - } r.chapters.push_back(c); } @@ -354,7 +334,6 @@ EMSCRIPTEN_BINDINGS(structs) { .field("channels", &Stream::channels) .field("sample_rate", &Stream::sample_rate) .field("frame_size", &Stream::frame_size) - .field("tags", &Stream::tags) ; register_vector("Stream"); @@ -363,7 +342,6 @@ EMSCRIPTEN_BINDINGS(structs) { .field("time_base", &Chapter::time_base) .field("start", &Chapter::start) .field("end", &Chapter::end) - .field("tags", &Chapter::tags) ; register_vector("Chapter");