From 8d2dc10f5ea667c5049e563cc19b25544e56d171 Mon Sep 17 00:00:00 2001 From: Mattias Wadman Date: Tue, 14 Nov 2023 17:53:53 +0100 Subject: [PATCH] wip --- format/matroska/matroska.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/format/matroska/matroska.go b/format/matroska/matroska.go index 75d00e95..60f5d5df 100644 --- a/format/matroska/matroska.go +++ b/format/matroska/matroska.go @@ -513,6 +513,9 @@ func matroskaDecode(d *decode.D) any { case "V_MS/VFW/FOURCC": t.parentD.RangeFn(t.codecPrivatePos, t.codecPrivateTagSize, func(d *decode.D) { d.FieldStruct("bitmap_info_header", func(d *decode.D) { + // TODO: share VfW (video for windows) struct with riff formats? + d.Endian = decode.LittleEndian + d.FieldU32("bi_size") d.FieldU32("width") d.FieldU32("height") @@ -530,6 +533,8 @@ func matroskaDecode(d *decode.D) any { // TODO: hack? remove codecToFormat? t.codec = "V_FFV1" } + + d.FieldFormat("ffv1_parameters", &ffv1FrameGroup, nil) }) })