From 26c3873122ec3f3d786c2ac5a63e30bff251dffc Mon Sep 17 00:00:00 2001 From: DingDongSoLong4 <99329275+DingDongSoLong4@users.noreply.github.com> Date: Thu, 14 Dec 2023 04:31:58 +0200 Subject: [PATCH] Use int64 for sample-related FFProbeStream fields (#4361) --- pkg/ffmpeg/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ffmpeg/types.go b/pkg/ffmpeg/types.go index a816f5171..c9454cb40 100644 --- a/pkg/ffmpeg/types.go +++ b/pkg/ffmpeg/types.go @@ -64,7 +64,7 @@ type FFProbeStream struct { VisualImpaired int `json:"visual_impaired"` } `json:"disposition"` Duration string `json:"duration"` - DurationTs int `json:"duration_ts"` + DurationTs int64 `json:"duration_ts"` HasBFrames int `json:"has_b_frames,omitempty"` Height int `json:"height,omitempty"` Index int `json:"index"` @@ -78,7 +78,7 @@ type FFProbeStream struct { RFrameRate string `json:"r_frame_rate"` Refs int `json:"refs,omitempty"` SampleAspectRatio string `json:"sample_aspect_ratio,omitempty"` - StartPts int `json:"start_pts"` + StartPts int64 `json:"start_pts"` StartTime string `json:"start_time"` Tags struct { CreationTime json.JSONTime `json:"creation_time"`