fixes some cases between flv streams and hds streams