From 12f4b7cdff23608b8c61a26aaa535af0442dbeea Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 1 Mar 2024 03:10:20 -0500 Subject: [PATCH] fix: bitrate is uint16 --- metadata/media_format.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata/media_format.go b/metadata/media_format.go index 647f3cc..4590ce3 100644 --- a/metadata/media_format.go +++ b/metadata/media_format.go @@ -101,7 +101,7 @@ func (mmd *MediaFormat) DecodeMsgpack(dec *msgpack.Decoder) error { case 14: mmd.Fps = value.(int) case 15: - mmd.Bitrate = value.(int) + mmd.Bitrate = int(value.(uint16)) case 18: mmd.AudioChannels = value.(int) case 19: