lavf/segment: fix logic for segmenting audio-only inputs