Fix memory leak and compiler warnings in obs-ffmpeg-source