Skip to content

Commit

Permalink
fix warnings on Ubuntu 20.04
Browse files Browse the repository at this point in the history
disable vp9 if ABI is too old
  • Loading branch information
totaam committed Oct 20, 2022
1 parent 1d188dc commit bc05bef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xpra/codecs/vpx/encoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ PACKET_KIND = {
#"RGB is not supported. You need to convert your source to YUV, and then compress that."
COLORSPACES = {}

CODECS = ("vp8", "vp9")
if VPX_ENCODER_ABI_VERSION<=23:
CODECS = ("vp8", )
else:
CODECS = ("vp8", "vp9")
COLORSPACES["vp8"] = ("YUV420P", )
COLORSPACES["vp9"] = ("YUV420P", "YUV444P", "YUV444P10")

Expand Down

0 comments on commit bc05bef

Please sign in to comment.