A simple C implementation to stream H.264 to browser using WebRTC
The code contains things that make any modern C++ or Rust developer cringe: naked pointers, unsafe type casts, raw 
loops, using malloc&#x2F;free to manually allocate memory for buffers, and calls to unsafe free functions like strcat. So much slow boilerplate is required to do things like handling memory allocation. The increased source code size for even the simplest things becomes harder to maintain.<p>Danger is waiting around every corner for you to commit a buffer overflow or type confusion error after a long day of work. Infinite chances are offered for you to leak memory. The alternative is that you could be using a language that uses highly optimized RAII types on the stack which are impossible to leak, and written by some of the best programmers in the world <i>so you don’t have to juggle chainsaws</i>.<p>C invites disaster through seemingly normal use of the language. Just embrace modernity; your code will be smaller, more expressive, more performant, and you’ll be grateful.