From 51a5afc943efafb22983ffef11c4eac8d1e39654 Mon Sep 17 00:00:00 2001 From: Quentin Renard Date: Tue, 26 Nov 2024 10:23:43 +0100 Subject: [PATCH] Fixed hardware decode example --- examples/hardware_decoding/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/hardware_decoding/main.go b/examples/hardware_decoding/main.go index a1847f5..c4ac528 100644 --- a/examples/hardware_decoding/main.go +++ b/examples/hardware_decoding/main.go @@ -92,7 +92,10 @@ func main() { } // Create stream - s := &stream{inputStream: is} + s := &stream{ + inputStream: is, + hardwarePixelFormat: astiav.PixelFormatNone, + } // Find decoder if *decoderCodecName != "" {