Skip to content

Instantly share code, notes, and snippets.

View SergiusTheBest's full-sized avatar

Sergey Podobry SergiusTheBest

View GitHub Profile
@SergiusTheBest
SergiusTheBest / H264_Decoder.cpp
Created May 17, 2016 19:50 — forked from roxlu/H264_Decoder.cpp
LibAV parser and decoder example with openGL (YUV420 -> RGB shader).
#include "H264_Decoder.h"
H264_Decoder::H264_Decoder(h264_decoder_callback frameCallback, void* user)
:codec(NULL)
,codec_context(NULL)
,parser(NULL)
,fp(NULL)
,frame(0)
,cb_frame(frameCallback)
,cb_user(user)