avformat/mux: Fix assertion failure due to max_interleave_delta and poor input