decoderbase: fix new[] free mismatch
scopedlogger: add license header
encoder: init version, include h264