Skip to content

Commit

Permalink
cam: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tomba committed Jan 9, 2024
1 parent bc37848 commit e8c0443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/cam.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
# XXX
stream['kms-fourcc'] = stream['fourcc']

if args.type == 'drm' and 'embedded' in stream and stream['embedded']:
if args.type == 'drm' and stream.get('embedded', False):
divs = [16, 8, 4, 2, 1]
for div in divs:
w = stream['kms-buf-w'] // div
Expand Down

0 comments on commit e8c0443

Please sign in to comment.