Skip to content

Commit

Permalink
Reduce video meta size to fix broken video
Browse files Browse the repository at this point in the history
  • Loading branch information
Ty3uK committed Sep 26, 2024
1 parent c4edb2f commit 7dae09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/mp4/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func Fetch(ctx context.Context, httpClient *http.Client, sourceUrl string) (*Fet
return nil, fmt.Errorf("Video is larger than 50MB")
}

meta := make([]byte, 32*1024)
meta := make([]byte, 16*1024)
_, err = res.Body.Read(meta)
if err != nil {
defer res.Body.Close()
Expand Down

0 comments on commit 7dae09d

Please sign in to comment.