avf: has_duration does not check the global one