Skip to content

Commit

Permalink
Fixed QT segmentation fault in QBitmap.fromData in GlyphEntry (#428)
Browse files Browse the repository at this point in the history
It's a weird fix but other attempts lead to video corruption see ticket for details.
  • Loading branch information
obilodeau committed Dec 20, 2022
1 parent 85d7d1a commit 7f5aabf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/pyrdp-convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
if not HAS_GUI and args.format == "mp4":
sys.stderr.write("Error: MP4 conversion requires the full PyRDP installation.")
sys.exit(1)
elif HAS_GUI and args.format == "mp4":
# Initialize QT because QBitmap will segfault without it (#378, #428)
from PySide2.QtWidgets import QApplication
app = QApplication()

logging.basicConfig(level=logging.CRITICAL)
logging.getLogger("scapy").setLevel(logging.ERROR)
Expand Down

0 comments on commit 7f5aabf

Please sign in to comment.