V210 issue fix + correct packing

This commit is contained in:
Dmitry Sergeev
2026-09-18 01:30:11 +03:00
parent efa958723a
commit 4d8035a434
24 changed files with 218 additions and 84 deletions
+2 -3
View File
@@ -146,9 +146,8 @@ func validateVideoArgs(args *appArgs) error {
if args.videoFlowDefFile != "" {
return nil
}
if args.videoWidth == 0 || args.videoWidth%6 != 0 {
// v210 stores 6 pixels in each 16-byte block.
return fmt.Errorf("video width must be greater than zero and divisible by 6")
if args.videoWidth == 0 || args.videoWidth%2 != 0 {
return fmt.Errorf("video width must be greater than zero and even for 4:2:2 video")
}
if args.videoHeight == 0 {
return fmt.Errorf("video height must be greater than zero")