avformat/utils/av_probe_input_buffer2: fix offset check