Validate that the codec is functional before using it. Fixes streaming failure with VAAPI if hardware lacks codec support

This commit is contained in:
Cameron Gutman committed 2018-08-02 21:37:46 -07:00
1 parent 979ba2dab7
commit c18e99c9ec
6 files changed
+187 -125

No files matched your search

@@ -38,6 +38,10 @@ public:
virtual void renderFrame(AVFrame* frame);
private:
static
enum AVPixelFormat ffGetFormat(AVCodecContext*,
const enum AVPixelFormat* pixFmts);
Window m_XWindow;
AVBufferRef* m_HwContext;
void* m_X11VaLibHandle;