Fix memory leak in SRT input
Clean up properly in srt_offset
Optimize with -O3 in CFLAGS