Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am bpetto35 on github.
  • I am bpettorelli (https://keybase.io/bpettorelli) on keybase.
  • I have a public key whose fingerprint is 4DE5 088F 2B68 55F5 C157 4D1A 9604 5BDE C81B AD4F

To claim this, I am signing this object:

@bpetto35
bpetto35 / H264_Decoder.cpp
Created January 5, 2018 20:40 — 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)