mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-20 15:10:34 +00:00
Use the correct width and height of the test frame when performing the test decode
Using the stream resolution instead of the test frame resolution was causing all non-720p streams to fail on the VisionFive 2 board with the wave5 driver. It also likely fixes a similar interoperability issue with the qcom-venus driver that was reported in #1042
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
#include "ffmpeg.h"
|
||||
|
||||
// NOTE: All test frames MUST be 720p in order for us to provide the correct dimensions in the AVCodecContext!
|
||||
// See FFmpegVideoDecoder::tryInitializeRenderer() for details.
|
||||
|
||||
// 720p 60 FPS H.264 with 1 reference frame
|
||||
const uint8_t FFmpegVideoDecoder::k_H264TestFrame[] = {
|
||||
0x00, 0x00, 0x00, 0x01, 0x67, 0x64, 0x00, 0x20, 0xac, 0x2b, 0x40, 0x28, 0x02, 0xdd, 0x80, 0xb5, 0x06, 0x06, 0x06, 0xa5, 0x00, 0x00, 0x03, 0x03, 0xe8, 0x00, 0x01, 0xd4, 0xc0, 0x8f, 0x4a, 0xa0,
|
||||
|
||||
Reference in New Issue
Block a user