Skip to content

Commit

Permalink
ffmpeg/vaapi/encode: skip tilecols/rows < 1
Browse files Browse the repository at this point in the history
...so user config does not need to workaround it with
a post_validate callback.

Signed-off-by: U. Artie Eoff <[email protected]>
  • Loading branch information
uartie committed May 28, 2024
1 parent 3ece5cd commit d3bfb0e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/ffmpeg/vaapi/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ def map_profile(self):

def validate_caps(self):
self.ffencoder = self.ffenc

if self.codec in [Codec.AV1]:
# ffmpeg-vaapi tilecols and tilerows can't be < 1.
if self.tilecols < 1 or self.tilerows < 1:
slash.skip_test(
f"tilecols and tilerows must be > 0"
f" : got {self.tilecols} and {self.tilerows}"
)

super().validate_caps()

def check_output(self):
Expand Down

0 comments on commit d3bfb0e

Please sign in to comment.