avformat/hls: Fix regression with ranged media segments