Fix segfaults (double dealloc) in  decoder
Double max for duration ceiling