protected override void DisposeOverride() { FFmpegInvoke.avcodec_close(_pDecodingContext); AVFrame * frameOnStack = _pFrame; AVFrame **frame = &frameOnStack; FFmpegInvoke.av_frame_free(frame); }