lavf/segment: pass the top level chained muxer format context to segment_end()