Allow FFmpeg decoder to self-heal in cases of UAC dialogs and other unexpected loss of hardware state

This commit is contained in:
Cameron Gutman
2018-08-09 18:39:38 -07:00
parent 2fdfb3e998
commit c61182bcb2
2 changed files with 36 additions and 2 deletions
+1
View File
@@ -42,6 +42,7 @@ private:
const AVCodecHWConfig* m_HwDecodeCfg;
IFFmpegRenderer* m_Renderer;
SDL_atomic_t m_QueuedFrames;
int m_ConsecutiveFailedDecodes;
static const uint8_t k_H264TestFrame[];
static const uint8_t k_HEVCTestFrame[];